- Fixed a minor bug in destroy

This commit is contained in:
Jason Yeung 2005-09-23 19:57:20 +00:00
parent 60d2c8e349
commit d8d1a0a561

View File

@ -79,9 +79,6 @@ class DirectScrolledFrame(DirectFrame):
def setAutoHideScrollBars(self): def setAutoHideScrollBars(self):
self.guiItem.setAutoHide(self['autoHideScrollBars']) self.guiItem.setAutoHide(self['autoHideScrollBars'])
def destroy(self):
DirectFrame.destroy(self)
def commandFunc(self): def commandFunc(self):
if self['command']: if self['command']:
apply(self['command'], self['extraArgs']) apply(self['command'], self['extraArgs'])
@ -91,5 +88,5 @@ class DirectScrolledFrame(DirectFrame):
for child in self.canvas.getChildrenAsList(): for child in self.canvas.getChildrenAsList():
childGui = self.guiDict.get(child.getName()) childGui = self.guiDict.get(child.getName())
if childGui: childGui.destroy() if childGui: childGui.destroy()
DirectFrame.DirectFrame.destroy(self) DirectFrame.destroy(self)