diff options
author | wiktor w brodlo <wiktor@brodlo.net> | 2011-08-03 09:15:39 +0000 |
---|---|---|
committer | wiktor w brodlo <wiktor@brodlo.net> | 2011-08-03 09:15:39 +0000 |
commit | e5ff87bcbed1531faddf938df24981e5a79fbfc8 (patch) | |
tree | c4864abced4f7ac66c4bd62b28d3840ef3fc44b6 /iw | |
parent | iw/timezone_gui.py: import gui (diff) | |
download | anaconda-e5ff87bcbed1531faddf938df24981e5a79fbfc8.tar.gz anaconda-e5ff87bcbed1531faddf938df24981e5a79fbfc8.tar.bz2 anaconda-e5ff87bcbed1531faddf938df24981e5a79fbfc8.zip |
iw/timezone_gui.py: fix custom_widegt_handler
Diffstat (limited to 'iw')
-rw-r--r-- | iw/timezone_gui.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/iw/timezone_gui.py b/iw/timezone_gui.py index 202719c..ecac31e 100644 --- a/iw/timezone_gui.py +++ b/iw/timezone_gui.py @@ -64,11 +64,14 @@ class TimezoneWindow(InstallWindow): def custom_widget_handler(self, xml, function_name, widget_name, str1, str2, int1, int2): - if hasattr(self, function_name): - handler = getattr(self, function_name) - return handler(str1, str2, int1, int2) + if isinstance(function_name, string): + if hasattr(self, function_name): + handler = getattr(self, function_name) + return handler(str1, str2, int1, int2) + else: + # Lame. + return gtk.Label() else: - # Lame. return gtk.Label() def timezone_widget_create (self, str1, str2, int1, int2): |