mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
cleanup all leaking events that I get when I do a simple login then logout
This commit is contained in:
parent
8f59fd735b
commit
4fc2782a32
@ -334,6 +334,8 @@ class DirectDialog(DirectFrame):
|
||||
def destroy(self):
|
||||
if self['fadeScreen']:
|
||||
base.transitions.noTransitions()
|
||||
for button in self.buttonList:
|
||||
button.destroy()
|
||||
DirectFrame.destroy(self)
|
||||
|
||||
class OkDialog(DirectDialog):
|
||||
|
@ -144,6 +144,8 @@ class DirectScrolledList(DirectFrame):
|
||||
taskMgr.remove(self.taskName("scroll"))
|
||||
if hasattr(self, "currentSelected"):
|
||||
del self.currentSelected
|
||||
self.incButton.destroy()
|
||||
self.decButton.destroy()
|
||||
DirectFrame.destroy(self)
|
||||
|
||||
def selectListItem(self, item):
|
||||
|
Loading…
x
Reference in New Issue
Block a user