Skip to content

Commit 7bb55e3

Browse files
author
Mark Mine
committed
Fix destroy
1 parent 67750a8 commit 7bb55e3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

direct/src/gui/DirectCheckButton.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def __init__(self, parent = aspect2d, **kw):
5252
# After initialization with X giving it the correct size, put back space
5353
if self['boxImage'] == None:
5454
self.indicator['text'] = (' ', '*')
55-
self.indicator['text_pos'] = (0,-.17)
55+
self.indicator['text_pos'] = (0,-.2)
5656
else:
5757
self.indicator['text'] = (' ', ' ')
5858
if self['boxImageColor'] != None and self['boxImage'] != None:
@@ -92,7 +92,6 @@ def setFrameSize(self, fClearFrame = 0):
9292
indicatorHeight = (self.indicator.getHeight() + (2*ibw[1]))
9393
diff = (indicatorHeight + (2*self['boxBorder']) -
9494
(self.bounds[3] - self.bounds[2]))
95-
# print diff, self.bounds[3], self.bounds[2]
9695
# If background is smaller then indicator, enlarge background
9796
if diff > 0:
9897
if self['boxPlacement'] == 'left': #left

direct/src/gui/DirectOptionMenu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def destroy(self):
261261
Make sure you clean up popup menu
262262
"""
263263
self.reparentFrame.reparentTo(self)
264-
DirectGuiBase.destroy(self)
264+
DirectButton.destroy(self)
265265

266266

267267

0 commit comments

Comments
 (0)