Mercurial > libervia-backend
changeset 1632:4f9fa67758eb
primitivus: fixed showDialog
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 19 Nov 2015 22:31:06 +0100 |
parents | 25906c0dbc63 |
children | 2071d5cec5d6 |
files | frontends/src/primitivus/primitivus |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/frontends/src/primitivus/primitivus Thu Nov 19 18:15:35 2015 +0100 +++ b/frontends/src/primitivus/primitivus Thu Nov 19 22:31:06 2015 +0100 @@ -596,11 +596,11 @@ def showDialog(self, message, title="", type_="info", answer_cb = None, answer_data = None): if type_ == 'info': - popup = sat_widgets.alert(title, message, ok_cb=answer_cb) + popup = sat_widgets.Alert(title, message, ok_cb=answer_cb) if answer_cb is None: popup.setCallback('ok', lambda dummy: self.removePopUp(popup)) elif type_ == 'error': - popup = sat_widgets.alert(title, message, ok_cb=answer_cb) + popup = sat_widgets.Alert(title, message, ok_cb=answer_cb) if answer_cb is None: popup.setCallback('ok', lambda dummy: self.removePopUp(popup)) elif type_ == 'yes/no': @@ -608,7 +608,7 @@ popup.setCallback('yes', self._dialogOkCb, (popup, answer_cb, answer_data)) popup.setCallback('no', self._dialogCancelCb, (popup, answer_cb, answer_data)) else: - popup = sat_widgets.alert(title, message, ok_cb=answer_cb) + popup = sat_widgets.Alert(title, message, ok_cb=answer_cb) if answer_cb is None: popup.setCallback('ok', lambda dummy: self.removePopUp(popup)) log.error(u'unmanaged dialog type: {}'.format(type_))