Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8215877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T11:56:00+00:00 2026-06-07T11:56:00+00:00

I have a wx.Frame from wxPython and want to do intermediate and final updates

  • 0

I have a wx.Frame from wxPython and want to do intermediate and final updates on resize.

Because I didn’t find an end-of-resizing event, my approach is to do the intermediate update on wx.EVT_SIZE and the final update in a timer I start on wx.EVT_SIZE. It works most of the time, but sometimes it hangs at threading.Timer.start (meaning Before is printed at last [see code]). Do you know why?

This is the code for the resize handler and the timer method:

def _on_resize(self, event):
    self.Layout()
    self._resize_lock.acquire()
    print 'resize event'
    #Intermediate update is done here
    self._resize_lock.release()
    if self._resize_timer != None:
        self._resize_timer.cancel()
    self._resize_timer = threading.Timer(0.75,
        self._resize_timer_method)
    print 'Before'
    self._resize_timer.start()
    print 'After'

def _resize_timer_method(self):
    self._resize_lock.acquire()
    print 'resize timer'
    #Final update is done here
    self._resize_lock.release()

PS: If you know how to get an end-of-resizing event, please tell me instead.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T11:56:01+00:00Added an answer on June 7, 2026 at 11:56 am

    Why does it have to update during sizing? Regardless, I think you would be better off using a wx.Timer(). I suspect that you’re doing something that’s not threadsafe and that’s making things unpredictable.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a frame extends from JWindow (because I want to handle my X
I have two frames and want to access an element in one frame from
I have a data frame full from which I want to take the last
I have a data.frame from this code: my_df = data.frame(read_time = c(2010-02-15, 2010-02-15, 2010-02-16,
I have a data frame in R that has come about from running some
I have a data.frame (which I melted using the melt function), from which I
I have created a data frame from a SQL query using the RODBC package.
What i want to do is the following procedure: Get a frame from the
I want to create a single shape file from multiple mxd's that have multiple
I am trying create a data.frame from which to create a graph. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.