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

View File

@@ -185,7 +185,7 @@ class wxPopupDialog(wxDialog):
class wxPopupControl(wxPyControl): class wxPopupControl(wxPyControl):
def __init__(self,*_args,**_kwargs): def __init__(self,*_args,**_kwargs):
if 'value' in _kwargs: if _kwargs.has_key('value'):
del _kwargs['value'] del _kwargs['value']
apply(wxPyControl.__init__,(self,) + _args,_kwargs) apply(wxPyControl.__init__,(self,) + _args,_kwargs)