summaryrefslogtreecommitdiff
path: root/virtManager/baseclass.py
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2017-04-27 15:00:17 -0400
committerCole Robinson <crobinso@redhat.com>2017-04-27 15:00:17 -0400
commitc0a3234633583471010d840b9e6019d766c955b4 (patch)
tree9796824b8e4746c07118d8b6199b025d833237c7 /virtManager/baseclass.py
parent8181e8609867fe6ed101e48212d42a1c38373539 (diff)
downloadvirt-manager-c0a3234633583471010d840b9e6019d766c955b4.tar.gz
baseclass: share wizard cursor setting code
Diffstat (limited to 'virtManager/baseclass.py')
-rw-r--r--virtManager/baseclass.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/virtManager/baseclass.py b/virtManager/baseclass.py
index 3d40ae26..7f3b7592 100644
--- a/virtManager/baseclass.py
+++ b/virtManager/baseclass.py
@@ -238,3 +238,18 @@ class vmmGObjectUI(vmmGObject):
def bind_escape_key_close(self):
self.bind_escape_key_close_helper(self.topwin, self.close)
+
+ def set_finish_cursor(self):
+ self.topwin.set_sensitive(False)
+ cursor = Gdk.Cursor.new(Gdk.CursorType.WATCH)
+ self.topwin.get_window().set_cursor(cursor)
+
+ def reset_finish_cursor(self, topwin=None):
+ if not topwin:
+ topwin = self.topwin
+
+ topwin.set_sensitive(True)
+ if not topwin.get_window():
+ return
+ cursor = Gdk.Cursor.new(Gdk.CursorType.TOP_LEFT_ARROW)
+ topwin.get_window().set_cursor(cursor)