changeset 186:33e618d385cf

Primitivus: fixed focus in Input dialog
author Goffi <goffi@goffi.org>
date Wed, 18 Aug 2010 17:26:34 +0800 (2010-08-18)
parents fd2db62ea5eb
children 12544ea2951f
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 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"""