comparison frontends/src/primitivus/primitivus @ 804:5174657b3378

XMLUI (core, frontends): added JidWidget and DividerWidget + popup type + some bugfixes: - JidWidget is a text container a Jabber ID, this can be used by frontends for special treatment (e.g.: possibility to click on it) - DividerWidget is a separator, like a blank or dashed line - popup type is similar to normal window, but designed for a smaller popping window
author Goffi <goffi@goffi.org>
date Tue, 04 Feb 2014 18:19:32 +0100
parents 7f2082b192ed
children be4c5e24dab9
comparison
equal deleted inserted replaced
803:f100fd8d279f 804:5174657b3378
453 if not data: 453 if not data:
454 # action was a one shot, nothing to do 454 # action was a one shot, nothing to do
455 pass 455 pass
456 elif "xmlui" in data: 456 elif "xmlui" in data:
457 ui = XMLUI(self, xml_data = data['xmlui']) 457 ui = XMLUI(self, xml_data = data['xmlui'])
458 ui.show('popup') 458 ui.show()
459 else: 459 else:
460 self.showPopUp(sat_widgets.Alert(_("Error"), _(u"Unmanaged action result"), ok_cb=self.removePopUp)) 460 self.showPopUp(sat_widgets.Alert(_("Error"), _(u"Unmanaged action result"), ok_cb=self.removePopUp))
461 def action_eb(failure): 461 def action_eb(failure):
462 self.showPopUp(sat_widgets.Alert(_("Error"), unicode(failure), ok_cb=self.removePopUp)) 462 self.showPopUp(sat_widgets.Alert(_("Error"), unicode(failure), ok_cb=self.removePopUp))
463 463