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:
@@ -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):
|
||||||
|
@@ -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)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user