mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
- Fixed a minor bug in destroy
This commit is contained in:
parent
60d2c8e349
commit
d8d1a0a561
@ -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)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user