comparison frontends/src/primitivus/xmlui.py @ 1612:48f324352c52

primitivus: fixed showDialog and XMLUI message dialog
author Goffi <goffi@goffi.org>
date Tue, 17 Nov 2015 12:28:45 +0100
parents 1378ec04380f
children d17772b0fe22
comparison
equal deleted inserted replaced
1611:f4a0b12d2442 1612:48f324352c52
334 class PrimitivusMessageDialog(PrimitivusDialog, xmlui.MessageDialog, sat_widgets.Alert): 334 class PrimitivusMessageDialog(PrimitivusDialog, xmlui.MessageDialog, sat_widgets.Alert):
335 335
336 def __init__(self, _xmlui_parent, title, message, level): 336 def __init__(self, _xmlui_parent, title, message, level):
337 PrimitivusDialog.__init__(self, _xmlui_parent) 337 PrimitivusDialog.__init__(self, _xmlui_parent)
338 xmlui.MessageDialog.__init__(self, _xmlui_parent) 338 xmlui.MessageDialog.__init__(self, _xmlui_parent)
339 sat_widgets.Alert.__init__(self, title, message, ok_cb=lambda dummy: self._xmluiValidated()) 339 sat_widgets.Alert.__init__(self, title, message, ok_cb=lambda dummy: self._xmluiClose())
340 340
341 341
342 class PrimitivusNoteDialog(xmlui.NoteDialog, PrimitivusMessageDialog): 342 class PrimitivusNoteDialog(xmlui.NoteDialog, PrimitivusMessageDialog):
343 # TODO: separate NoteDialog 343 # TODO: separate NoteDialog
344 pass 344 pass