baseclass: Add is_visible

Remove the duplicated implementations everywhere
This commit is contained in:
Cole Robinson
2019-04-14 17:05:14 -04:00
parent 5367f3343a
commit 3784864e10
10 changed files with 8 additions and 25 deletions
+1 -3
View File
@@ -221,13 +221,11 @@ class vmmManager(vmmGObjectUI):
if self._window_size:
self.config.set_manager_window_size(*self._window_size)
def is_visible(self):
return bool(self.topwin.get_visible())
def set_startup_error(self, msg):
self.widget("vm-notebook").set_current_page(1)
self.widget("startup-error-label").set_text(msg)
################
# Init methods #
################