Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/tautils.py
diff options
context:
space:
mode:
Diffstat (limited to 'TurtleArt/tautils.py')
-rw-r--r--TurtleArt/tautils.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/TurtleArt/tautils.py b/TurtleArt/tautils.py
index ff9ae7e..345fb22 100644
--- a/TurtleArt/tautils.py
+++ b/TurtleArt/tautils.py
@@ -341,13 +341,8 @@ def chooser_dialog(parent_window, filter, action):
if cleanup_needed:
chooser.destroy()
del chooser
+ gobject.idle_add(action, dsobject)
- gobject.idle_add(_take_action, action, dsobject)
-
-def _take_action(action, dsobject):
- action(dsobject)
- if dsobject is not None:
- dsobject.destroy()
def data_from_file(ta_file):
''' Open the .ta file, ignoring any .png file that might be present. '''