changeset 25:e6bd6146dd31

Primitivus: fixed focus in Input dialog
author Goffi <goffi@goffi.org>
date Wed, 18 Aug 2010 17:26:34 +0800
parents 67a19cfeab8f
children fcc20ac7b68a
files frontends/primitivus/custom_widgets.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/frontends/primitivus/custom_widgets.py	Wed Aug 18 12:45:48 2010 +0800
+++ b/frontends/primitivus/custom_widgets.py	Wed Aug 18 17:26:34 2010 +0800
@@ -722,6 +722,7 @@
         instr_wid = urwid.Text(instrucions+':')
         edit_box = AdvancedEdit(edit_text=default_txt)
         GenericDialog.__init__(self, [instr_wid,edit_box], title, style, ok_value=edit_box, **kwargs)
+        self._w.base_widget.set_focus('body')
 
 class ConfirmDialog(GenericDialog):
     """Dialog with buttons for confirm or cancel an action"""