Changeset 3a396cf032e4…
Parent 652ac1a00139…
by
Changes to one file · Browse files at 3a396cf032e4 Showing diff from parent 652ac1a00139 Diff from another changeset...
@@ -145,9 +145,13 @@ def flush(self):
pass
- def prompt(self, msg, pat=None, choices=None, default="y"):
+ def prompt(self, msg, choices=None, default="y"):
import re
if not calliffunc(self.interactive): return default
+ if isinstance(choices, str):
+ pat = choices
+ else:
+ pat = None
while True:
try:
# send request to main thread, await response
@@ -209,6 +213,7 @@ dlg = gdialog.CustomPrompt('Hg Prompt', prompt,
self.parent, choices, default)
dlg.connect('response', self.prompt_response)
+ dlg.show_all()
else:
dlg = entry_dialog(self.parent, prompt, visible, default,
self.dialog_response)
|
Loading...