comparison src/browser/sat_browser/xmlui.py @ 719:9a9e2fcc6347

browser side (xmlui): added basic JidInputWidget (use a StringWidget)
author Goffi <goffi@goffi.org>
date Tue, 18 Aug 2015 10:47:59 +0200
parents 82123705474b
children bf0a7da558e8
comparison
equal deleted inserted replaced
718:5745b5e6586a 719:9a9e2fcc6347
95 def _xmluiGetValue(self): 95 def _xmluiGetValue(self):
96 return self.getText() 96 return self.getText()
97 97
98 def _xmluiOnChange(self, callback): 98 def _xmluiOnChange(self, callback):
99 self.addChangeListener(callback) 99 self.addChangeListener(callback)
100
101
102 class JidInputWidget(xmlui.JidInputWidget, StringWidget):
103
104 def __init__(self, _xmlui_parent, value, read_only=False):
105 StringWidget.__init__(self, _xmlui_parent, value, read_only)
100 106
101 107
102 class PasswordWidget(xmlui.PasswordWidget, PasswordTextBox): 108 class PasswordWidget(xmlui.PasswordWidget, PasswordTextBox):
103 109
104 def __init__(self, _xmlui_parent, value, read_only=False): 110 def __init__(self, _xmlui_parent, value, read_only=False):