diff frontends/primitivus/custom_widgets.py @ 186:33e618d385cf

Primitivus: fixed focus in Input dialog
author Goffi <goffi@goffi.org>
date Wed, 18 Aug 2010 17:26:34 +0800
parents 556c2bd7c344
children 879beacb8e16
line wrap: on
line diff
--- a/frontends/primitivus/custom_widgets.py	Wed Aug 18 16:11:01 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"""