File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed
Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,12 @@ def setResizeThumb(self):
123123 self .guiItem .setResizeThumb (self ['resizeThumb' ])
124124
125125 def destroy (self ):
126+ self .thumb .destroy ()
127+ del self .thumb
128+ self .incButton .destroy ()
129+ del self .incButton
130+ self .decButton .destroy ()
131+ del self .decButton
126132 DirectFrame .destroy (self )
127133
128134 def commandFunc (self ):
Original file line number Diff line number Diff line change @@ -93,5 +93,9 @@ def destroy(self):
9393 for child in self .canvas .getChildrenAsList ():
9494 childGui = self .guiDict .get (child .getName ())
9595 if childGui : childGui .destroy ()
96+ self .verticalScroll .destroy ()
97+ self .horizontalScroll .destroy ()
98+ del self .verticalScroll
99+ del self .horizontalScroll
96100 DirectFrame .destroy (self )
97101
Original file line number Diff line number Diff line change @@ -114,6 +114,8 @@ def setOrientation(self):
114114 raise ValueError , 'Invalid value for orientation: %s' % (self ['orientation' ])
115115
116116 def destroy (self ):
117+ self .thumb .destroy () # ow!
118+ del self .thumb
117119 DirectFrame .destroy (self )
118120
119121 def commandFunc (self ):
You can’t perform that action at this time.
0 commit comments