We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f32dc3c commit a3b4486Copy full SHA for a3b4486
direct/src/tkpanels/AnimPanel.py
@@ -276,7 +276,7 @@ def loadAnim(self):
276
title = 'Load Animation',
277
parent = self.component('hull')
278
)
279
- if (animFilename == ''):
+ if not animFilename:
280
# no file selected, canceled
281
return
282
@@ -372,8 +372,9 @@ def setDestroyCallBack(self, callBack):
372
def destroy(self):
373
# First clean up
374
taskMgr.remove(self.id + '_UpdateTask')
375
- self.destroyCallBack()
376
- self.destroyCallBack = None
+ if self.destroyCallBack is not None:
+ self.destroyCallBack()
377
+ self.destroyCallBack = None
378
AppShell.destroy(self)
379
380
class ActorControl(Pmw.MegaWidget):
0 commit comments