mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
fixed DirectEntry cleanup
This commit is contained in:
parent
4a67683fdc
commit
beb4fdfb5e
@ -97,6 +97,11 @@ class DirectEntry(DirectFrame):
|
|||||||
if self['initialText']:
|
if self['initialText']:
|
||||||
self.set(self['initialText'])
|
self.set(self['initialText'])
|
||||||
|
|
||||||
|
def destroy(self):
|
||||||
|
self.ignore(self.guiItem.getFocusInEvent())
|
||||||
|
self.ignore(self.guiItem.getFocusOutEvent())
|
||||||
|
DirectFrame.destroy(self)
|
||||||
|
|
||||||
def setup(self):
|
def setup(self):
|
||||||
self.node().setup(self['width'], self['numLines'])
|
self.node().setup(self['width'], self['numLines'])
|
||||||
|
|
||||||
|
@ -35,6 +35,9 @@ class DirectFrame(DirectGuiWidget):
|
|||||||
# Call option initialization functions
|
# Call option initialization functions
|
||||||
self.initialiseoptions(DirectFrame)
|
self.initialiseoptions(DirectFrame)
|
||||||
|
|
||||||
|
def destroy(self):
|
||||||
|
DirectGuiWidget.destroy(self)
|
||||||
|
|
||||||
def setText(self):
|
def setText(self):
|
||||||
# Determine if user passed in single string or a sequence
|
# Determine if user passed in single string or a sequence
|
||||||
if self['text'] == None:
|
if self['text'] == None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user