Mercurial > libervia-backend
comparison frontends/src/primitivus/primitivus @ 382:f6deca4e328e
Primitivus: fixed "info" showDialog
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 29 Sep 2011 12:01:52 +0200 |
parents | ede26abf6ca1 |
children | 10b4f577d0c0 |
comparison
equal
deleted
inserted
replaced
381:1f7a14d0343d | 382:f6deca4e328e |
---|---|
359 | 359 |
360 | 360 |
361 def showDialog(self, message, title="", type="info", answer_cb = None, answer_data = None): | 361 def showDialog(self, message, title="", type="info", answer_cb = None, answer_data = None): |
362 if type == 'info': | 362 if type == 'info': |
363 popup = sat_widgets.Alert(unicode(title), unicode(message), ok_cb=answer_cb or self.removePopUp) #FIXME: remove unicode here when DBus Bridge will no return dbus.String anymore | 363 popup = sat_widgets.Alert(unicode(title), unicode(message), ok_cb=answer_cb or self.removePopUp) #FIXME: remove unicode here when DBus Bridge will no return dbus.String anymore |
364 flags = wx.OK | wx.ICON_INFORMATION | |
365 elif type == 'error': | 364 elif type == 'error': |
366 popup = sat_widgets.Alert(unicode(title), unicode(message), ok_cb=answer_cb or self.removePopUp) #FIXME: remove unicode here when DBus Bridge will no return dbus.String anymore | 365 popup = sat_widgets.Alert(unicode(title), unicode(message), ok_cb=answer_cb or self.removePopUp) #FIXME: remove unicode here when DBus Bridge will no return dbus.String anymore |
367 elif type == 'yes/no': | 366 elif type == 'yes/no': |
368 popup = sat_widgets.ConfirmDialog(unicode(message), | 367 popup = sat_widgets.ConfirmDialog(unicode(message), |
369 yes_cb=self._dialogOkCb, yes_value = (answer_cb, answer_data), | 368 yes_cb=self._dialogOkCb, yes_value = (answer_cb, answer_data), |