mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
*** empty log message ***
This commit is contained in:
parent
5010a9dbe8
commit
f05f56ebf1
@ -32,11 +32,14 @@ class PickList(PandaObject.PandaObject):
|
|||||||
|
|
||||||
# display the menu
|
# display the menu
|
||||||
self.__displayChoices(choiceList)
|
self.__displayChoices(choiceList)
|
||||||
|
self.isClean = 0
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def cleanup(self):
|
def cleanup(self):
|
||||||
"""cleanup(self)
|
"""cleanup(self)
|
||||||
"""
|
"""
|
||||||
|
if self.isClean == 0:
|
||||||
|
self.isClean = 1
|
||||||
# remove keyboard events
|
# remove keyboard events
|
||||||
self.ignore("up-up")
|
self.ignore("up-up")
|
||||||
self.ignore("down-up")
|
self.ignore("down-up")
|
||||||
|
@ -11,7 +11,7 @@ class DirectObject:
|
|||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
self.cleanup()
|
self.cleanup()
|
||||||
except:
|
except NameError:
|
||||||
print "No cleanup() method defined!"
|
print "No cleanup() method defined!"
|
||||||
|
|
||||||
# Event Handling
|
# Event Handling
|
||||||
|
Loading…
x
Reference in New Issue
Block a user