Mercurial > libervia-desktop-kivy
changeset 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 | 89799148f894 |
children | 83697218b9b2 |
files | cagou/core/xmlui.py |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
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()