mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-10 23:45:49 -06:00
Set busy cursor when displaying progress bar
This commit is contained in:
parent
820832a007
commit
6cc3c10a18
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user