primitivus (xmlui): fixed closing on popup panel "OK" button press
This commit is contained in:
parent
909a54995e
commit
fd271b69ba
2 changed files with 2 additions and 2 deletions
|
|
@ -406,7 +406,7 @@ class XMLUIPanel(xmlui.XMLUIPanel, PrimitivusWidget):
|
|||
if not 'NO_CANCEL' in self.flags:
|
||||
buttons.append(urwid.Button(_('Cancel'), self.onFormCancelled))
|
||||
else:
|
||||
buttons.append(urwid.Button(_('OK')))
|
||||
buttons.append(urwid.Button(_('OK'), on_press=lambda dummy: self._xmluiClose()))
|
||||
max_len = max([len(button.get_label()) for button in buttons])
|
||||
grid_wid = urwid.GridFlow(buttons, max_len + 4, 1, 0, 'center')
|
||||
self.main_cont.body.append(grid_wid)
|
||||
|
|
|
|||
|
|
@ -306,7 +306,7 @@ class XMLUIPanel(XMLUIBase):
|
|||
|
||||
New frontends can inherite this class to easily implement XMLUI
|
||||
@property widget_factory: factory to create frontend-specific widgets
|
||||
@proporety dialog_factory: factory to create frontend-specific dialogs
|
||||
@property dialog_factory: factory to create frontend-specific dialogs
|
||||
"""
|
||||
widget_factory = None
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue