summaryrefslogtreecommitdiffstats
path: root/text.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2001-07-02 20:56:38 +0000
committerMike Fulbright <msf@redhat.com>2001-07-02 20:56:38 +0000
commit985db75db893d897d72a793fff6fa83a8a52a93f (patch)
treefafae6275e0d7faa34ac154f3f9e2b958e4f7311 /text.py
parent8cedce028a159eefb9a99c758b7db57ba016420f (diff)
downloadanaconda-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.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/text.py b/text.py
index cf46a9bf4..f7c1d91ea 100644
--- a/text.py
+++ b/text.py
@@ -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))