diff cagou/core/xmlui.py @ 236:ca86954b3788

xmlui: implemented TextBoxWidget + set height for XMLUIPanel
author Goffi <goffi@goffi.org>
date Fri, 31 Aug 2018 16:58:15 +0200
parents 525527a01439
children 661b9cf7b4e4
line wrap: on
line diff
--- a/cagou/core/xmlui.py	Fri Aug 31 16:58:10 2018 +0200
+++ b/cagou/core/xmlui.py	Fri Aug 31 16:58:15 2018 +0200
@@ -84,7 +84,7 @@
 class StringWidget(xmlui.StringWidget, TextInput, TextInputOnChange):
 
     def __init__(self, xmlui_parent, value, read_only=False):
-        TextInput.__init__(self, text=value, multiline=False)
+        TextInput.__init__(self, text=value)
         TextInputOnChange.__init__(self)
         self.readonly = read_only
 
@@ -95,6 +95,10 @@
         return self.text
 
 
+class TextBoxWidget(xmlui.TextBoxWidget, StringWidget):
+    pass
+
+
 class JidInputWidget(xmlui.JidInputWidget, StringWidget):
     pass