From 3367fe266f2ccb1495f8e2e90c9bc1c5dcc29751 Mon Sep 17 00:00:00 2001 From: rdb Date: Fri, 3 Jan 2020 18:19:39 +0100 Subject: [PATCH] tkpanels: properly test "None" return from askopenfilename --- direct/src/tkpanels/AnimPanel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direct/src/tkpanels/AnimPanel.py b/direct/src/tkpanels/AnimPanel.py index ca5cbe0d25..12bc1feefd 100644 --- a/direct/src/tkpanels/AnimPanel.py +++ b/direct/src/tkpanels/AnimPanel.py @@ -276,7 +276,7 @@ class AnimPanel(AppShell): title = 'Load Animation', parent = self.component('hull') ) - if not animFilename and animFilename != 'None': + if not animFilename or animFilename == 'None': # no file selected, canceled return