diff frontends/src/wix/xmlui.py @ 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 f100fd8d279f
children 7c05c39156a2
line wrap: on
line diff
--- a/frontends/src/wix/xmlui.py	Tue Feb 04 18:19:29 2014 +0100
+++ b/frontends/src/wix/xmlui.py	Tue Feb 04 18:19:32 2014 +0100
@@ -57,6 +57,22 @@
         wx.StaticText.__init__(self, parent, -1, value)
 
 
+class LabelWidget(xmlui.LabelWidget, TextWidget):
+
+    def __init__(self, parent, value):
+        super(LabelWidget, self).__init__(parent, value+": ")
+
+
+class JidWidget(xmlui.JidWidget, TextWidget):
+    pass
+
+
+class DividerWidget(WixWidget, xmlui.DividerWidget, wx.StaticLine):
+
+    def __init__(self, parent, style='line'):
+        wx.StaticLine.__init__(self, parent, -1)
+
+
 class StringWidget(EventWidget, ValueWidget, xmlui.StringWidget, wx.TextCtrl):
     _xmlui_change_event = wx.EVT_TEXT