summaryrefslogtreecommitdiffstats
path: root/src/fringlib/fringui.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/fringlib/fringui.py')
-rw-r--r--src/fringlib/fringui.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/fringlib/fringui.py b/src/fringlib/fringui.py
index 5e13794..541f4ad 100644
--- a/src/fringlib/fringui.py
+++ b/src/fringlib/fringui.py
@@ -155,7 +155,7 @@ class UI( gtk.Window ):
self.eventbox.connect("size-allocate",self.__on_resize)
self.connect("delete_event", self.close)
- self.__show_busy_cursor(1)
+
def open_folder(self,path):
print "open",path
@@ -235,6 +235,7 @@ class UI( gtk.Window ):
self.walker.stop()
if path is None: return
self.walker.walk(path);
+ self.__show_busy_cursor(1)
def __selectfolder(self,widget):
""" Open a dialog to select a folder """
@@ -306,13 +307,14 @@ class UI( gtk.Window ):
def __show_busy_cursor(self, value):
if self.busy_cursor <= 0 and self.busy_cursor+value >= 0:
- self.window.set_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH))
+ if self.window: self.window.set_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH))
self.label.set_markup("Busy...")
elif self.busy_cursor > 0 and self.busy_cursor+value <= 0:
- self.window.set_cursor(None)
+ if self.window: self.window.set_cursor(None)
self.label.set_text("Ready.")
self.busy_cursor += value
+ print "busy state:",self.busy_cursor