Mercurial > libervia-desktop-kivy
diff 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 |
line wrap: on
line diff
--- a/cagou/core/xmlui.py Sat Jan 04 16:24:57 2020 +0100 +++ b/cagou/core/xmlui.py Sat Jan 04 16:24:57 2020 +0100 @@ -415,12 +415,12 @@ class ConfirmDialog(xmlui.ConfirmDialog, dialog.ConfirmDialog): def __init__(self, _xmlui_parent, title, message, level, buttons_set): - dialog.ConfirmDialog.__init__(self, - title=title, - message=message, - no_cb = self.no_cb, - yes_cb = self.yes_cb) + dialog.ConfirmDialog.__init__(self) xmlui.ConfirmDialog.__init__(self, _xmlui_parent) + self.title=title + self.message=message + self.no_cb = self.no_cb + self.yes_cb = self.yes_cb def no_cb(self): G.host.closeUI()