mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
messenger hook cleanup
This commit is contained in:
parent
c3b5ddfe62
commit
e37af2fe40
@ -123,6 +123,12 @@ class DirectScrollBar(DirectFrame):
|
||||
self.guiItem.setResizeThumb(self['resizeThumb'])
|
||||
|
||||
def destroy(self):
|
||||
self.thumb.destroy()
|
||||
del self.thumb
|
||||
self.incButton.destroy()
|
||||
del self.incButton
|
||||
self.decButton.destroy()
|
||||
del self.decButton
|
||||
DirectFrame.destroy(self)
|
||||
|
||||
def commandFunc(self):
|
||||
|
@ -93,5 +93,9 @@ class DirectScrolledFrame(DirectFrame):
|
||||
for child in self.canvas.getChildrenAsList():
|
||||
childGui = self.guiDict.get(child.getName())
|
||||
if childGui: childGui.destroy()
|
||||
self.verticalScroll.destroy()
|
||||
self.horizontalScroll.destroy()
|
||||
del self.verticalScroll
|
||||
del self.horizontalScroll
|
||||
DirectFrame.destroy(self)
|
||||
|
||||
|
@ -114,6 +114,8 @@ class DirectSlider(DirectFrame):
|
||||
raise ValueError, 'Invalid value for orientation: %s' % (self['orientation'])
|
||||
|
||||
def destroy(self):
|
||||
self.thumb.destroy() # ow!
|
||||
del self.thumb
|
||||
DirectFrame.destroy(self)
|
||||
|
||||
def commandFunc(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user