diff options
author | Walter Bender <walter@sugarlabs.org> | 2013-11-01 13:56:44 (GMT) |
---|---|---|
committer | Walter Bender <walter@sugarlabs.org> | 2013-11-01 13:56:44 (GMT) |
commit | 5a8c22ba72d48089fe817cd92680734c75446aad (patch) | |
tree | 60857d8d08605eb65e7b1d8fcead2b7a3353f0bf /turtleblocks.py | |
parent | 9d8193b92c8f7395b4b17de657c067c4afcbd412 (diff) |
add WATCH cursor when loading projects from store
Diffstat (limited to 'turtleblocks.py')
-rwxr-xr-x | turtleblocks.py | 5 |
1 files changed, 5 insertions, 0 deletions
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): ''' |