Mercurial > libervia-desktop-kivy
comparison cagou/core/xmlui.py @ 343:7a171d11eab6
xmlui: fixed ConfirmDialog creation:
setting properties in init doesn't seems to work anymore, so just setting them just after
init.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 04 Jan 2020 16:24:57 +0100 |
parents | 772c170b47a9 |
children | 4d660b252487 |
comparison
equal
deleted
inserted
replaced
342:89799148f894 | 343:7a171d11eab6 |
---|---|
413 | 413 |
414 | 414 |
415 class ConfirmDialog(xmlui.ConfirmDialog, dialog.ConfirmDialog): | 415 class ConfirmDialog(xmlui.ConfirmDialog, dialog.ConfirmDialog): |
416 | 416 |
417 def __init__(self, _xmlui_parent, title, message, level, buttons_set): | 417 def __init__(self, _xmlui_parent, title, message, level, buttons_set): |
418 dialog.ConfirmDialog.__init__(self, | 418 dialog.ConfirmDialog.__init__(self) |
419 title=title, | |
420 message=message, | |
421 no_cb = self.no_cb, | |
422 yes_cb = self.yes_cb) | |
423 xmlui.ConfirmDialog.__init__(self, _xmlui_parent) | 419 xmlui.ConfirmDialog.__init__(self, _xmlui_parent) |
420 self.title=title | |
421 self.message=message | |
422 self.no_cb = self.no_cb | |
423 self.yes_cb = self.yes_cb | |
424 | 424 |
425 def no_cb(self): | 425 def no_cb(self): |
426 G.host.closeUI() | 426 G.host.closeUI() |
427 self._xmluiCancelled() | 427 self._xmluiCancelled() |
428 | 428 |