[PATCH] only StandaloneSpokes have the register_event_cb method

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 pyanaconda/ui/gui/tools/run-spoke.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/ui/gui/tools/run-spoke.py b/pyanaconda/ui/gui/tools/run-spoke.py
index 5247163..d635957 100755
--- a/pyanaconda/ui/gui/tools/run-spoke.py
+++ b/pyanaconda/ui/gui/tools/run-spoke.py
@@ -39,8 +39,9 @@ if not spokeClass:
     sys.exit(1)
 
 spoke = spokeClass(ksdata, devicetree, instclass)
-spoke.register_event_cb("continue", lambda: Gtk.main_quit())
-spoke.register_event_cb("quit", lambda: Gtk.main_quit())
+if hasattr(spoke, "register_event_cb"):
+    spoke.register_event_cb("continue", lambda: Gtk.main_quit())
+    spoke.register_event_cb("quit", lambda: Gtk.main_quit())
 spoke.populate()
 
 if not spoke.showable:
-- 
1.7.4.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux