Set busy cursor when displaying progress bar

This commit is contained in:
Daniel P. Berrange 2006-11-06 15:00:39 -05:00
parent 820832a007
commit 6cc3c10a18

View File

@ -19,6 +19,7 @@
import threading
import gtk
import gtk.gdk
import gtk.glade
import gobject
@ -47,6 +48,7 @@ class vmmAsyncJob(gobject.GObject):
def run(self):
self.timer = gobject.timeout_add (100, self.pulse_pbar)
self.pbar_win.present()
self.pbar_win.window.set_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH))
self.bg_thread.start()
gtk.main()
gobject.source_remove(self.timer)