Throbber fixes, other tweaks to the demo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -149,7 +149,7 @@ class Throbber(wxPanel):
|
||||
|
||||
def UpdateThread(self):
|
||||
try:
|
||||
while not self.event.isSet():
|
||||
while hasattr(self, 'event') and not self.event.isSet():
|
||||
wxPostEvent(self, UpdateThrobberEvent())
|
||||
self.event.wait(self.frameDelay)
|
||||
except wxPyDeadObjectError: # BUG: we were destroyed
|
||||
|
Reference in New Issue
Block a user