Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--TurtleArtActivity.py5
-rwxr-xr-xturtleblocks.py5
2 files changed, 10 insertions, 0 deletions
diff --git a/TurtleArtActivity.py b/TurtleArtActivity.py
index c413358..db2eec8 100644
--- a/TurtleArtActivity.py
+++ b/TurtleArtActivity.py
@@ -1751,6 +1751,10 @@ in order to use the plugin.'))
self._selected_sample = image_path
self._sample_window.hide()
+ self.get_window().set_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH))
+ gobject.idle_add(self._sample_loader)
+
+ def _sample_loader(self):
# Convert from thumbnail path to sample path
basename = os.path.basename(self._selected_sample)[:-4]
for suffix in ['.ta', '.tb']:
@@ -1761,6 +1765,7 @@ in order to use the plugin.'))
break
self.tw.load_save_folder = os.path.join(activity.get_bundle_path(),
'samples')
+ self.get_window().set_cursor(gtk.gdk.Cursor(gtk.gdk.LEFT_PTR))
def _fill_samples_list(self, store):
'''
diff --git a/turtleblocks.py b/turtleblocks.py
index 55a02dc..df25eea 100755
--- a/turtleblocks.py
+++ b/turtleblocks.py
@@ -879,6 +879,10 @@ Would you like to save before quitting?'))
self._selected_sample = image_path
self._sample_window.hide()
+ self.win.get_window().set_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH))
+ gobject.idle_add(self._sample_loader)
+
+ def _sample_loader(self):
# Convert from thumbnail path to sample path
basename = os.path.basename(self._selected_sample)[:-4]
for suffix in ['.ta', '.tb']:
@@ -889,6 +893,7 @@ Would you like to save before quitting?'))
break
self.tw.load_save_folder = os.path.join(self._get_execution_dir(),
'samples')
+ self.win.get_window().set_cursor(gtk.gdk.Cursor(gtk.gdk.LEFT_PTR))
def _fill_samples_list(self, store):
'''