Fix destroy

This commit is contained in:
Mark Mine 2002-08-23 16:22:55 +00:00
parent 67750a8932
commit 7bb55e32ef
2 changed files with 2 additions and 3 deletions

View File

@ -52,7 +52,7 @@ class DirectCheckButton(DirectButton):
# After initialization with X giving it the correct size, put back space
if self['boxImage'] == None:
self.indicator['text'] = (' ', '*')
self.indicator['text_pos'] = (0,-.17)
self.indicator['text_pos'] = (0,-.2)
else:
self.indicator['text'] = (' ', ' ')
if self['boxImageColor'] != None and self['boxImage'] != None:
@ -92,7 +92,6 @@ class DirectCheckButton(DirectButton):
indicatorHeight = (self.indicator.getHeight() + (2*ibw[1]))
diff = (indicatorHeight + (2*self['boxBorder']) -
(self.bounds[3] - self.bounds[2]))
# print diff, self.bounds[3], self.bounds[2]
# If background is smaller then indicator, enlarge background
if diff > 0:
if self['boxPlacement'] == 'left': #left

View File

@ -261,7 +261,7 @@ class DirectOptionMenu(DirectButton):
Make sure you clean up popup menu
"""
self.reparentFrame.reparentTo(self)
DirectGuiBase.destroy(self)
DirectButton.destroy(self)