Fixes for Python 2.1 compatibility

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-12-18 06:25:03 +00:00
parent fbd3b09c78
commit 751d1f5b77
2 changed files with 4 additions and 4 deletions

View File

@@ -118,7 +118,7 @@ class TestPanel(wxPanel):
sizer.SetSizeHints(self)
sizer.Fit(self)
for t in self.throbbers:
for t in self.throbbers.keys():
self.throbbers[t]['throbber'].Start()
self.otherThrobber.Start()
self.otherThrobber.Reverse()
@@ -130,11 +130,11 @@ class TestPanel(wxPanel):
event.Skip()
def OnStartAnimation(self, event):
for t in self.throbbers:
for t in self.throbbers.keys():
self.throbbers[t]['throbber'].Start()
def OnStopAnimation(self, event):
for t in self.throbbers:
for t in self.throbbers.keys():
self.throbbers[t]['throbber'].Rest()
def OnClickThrobber(self, event):