diff options
author | Mike Fulbright <msf@redhat.com> | 2001-07-02 20:56:38 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2001-07-02 20:56:38 +0000 |
commit | 985db75db893d897d72a793fff6fa83a8a52a93f (patch) | |
tree | fafae6275e0d7faa34ac154f3f9e2b958e4f7311 /text.py | |
parent | 8cedce028a159eefb9a99c758b7db57ba016420f (diff) | |
download | anaconda-985db75db893d897d72a793fff6fa83a8a52a93f.tar.gz anaconda-985db75db893d897d72a793fff6fa83a8a52a93f.tar.xz anaconda-985db75db893d897d72a793fff6fa83a8a52a93f.zip |
Fix yes/no dialog to actually work in text mode, fix GUI messageWindow to return a valid boolean value for yes/no dialog. Also fixup calls to messageWindow appropriately.
Diffstat (limited to 'text.py')
-rw-r--r-- | text.py | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -238,6 +238,13 @@ class InstallInterface: if type == "ok": ButtonChoiceWindow(self.screen, _(title), _(text), buttons = [ TEXT_OK_BUTTON ]) + elif type == "yesno": + rc = ButtonChoiceWindow(self.screen, _(title), _(text), + buttons = [ TEXT_YES_BUTTON, TEXT_NO_BUTTON ]) + if rc == "yes": + return 1 + else: + return 0 else: return OkCancelWindow(self.screen, _(title), _(text)) |