Fix destroy
This commit is contained in:
parent
67750a8932
commit
7bb55e32ef
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -261,7 +261,7 @@ class DirectOptionMenu(DirectButton):
|
|||
Make sure you clean up popup menu
|
||||
"""
|
||||
self.reparentFrame.reparentTo(self)
|
||||
DirectGuiBase.destroy(self)
|
||||
DirectButton.destroy(self)
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue