fixed DirectEntry cleanup

This commit is contained in:
Darren Ranalli 2002-08-23 23:03:58 +00:00
parent 4a67683fdc
commit beb4fdfb5e
2 changed files with 8 additions and 0 deletions

View File

@ -97,6 +97,11 @@ class DirectEntry(DirectFrame):
if 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):
self.node().setup(self['width'], self['numLines'])

View File

@ -35,6 +35,9 @@ class DirectFrame(DirectGuiWidget):
# Call option initialization functions
self.initialiseoptions(DirectFrame)
def destroy(self):
DirectGuiWidget.destroy(self)
def setText(self):
# Determine if user passed in single string or a sequence
if self['text'] == None: