New Multi-line update option

This commit is contained in:
MikeTheWatchGuy 2018-08-09 13:00:50 -04:00
parent 644c441fbe
commit 7e1ff1d543
1 changed files with 6 additions and 4 deletions

View File

@ -404,6 +404,8 @@ class Multiline(Element):
super().__init__(ELEM_TYPE_INPUT_MULTILINE, scale=scale, size=size, auto_size_text=auto_size_text, background_color=bg, text_color=text_color, key=key)
return
def Update(self, NewValue):
self.TKText.insert(1.0, NewValue)
def __del__(self):
super().__del__()
@ -1006,11 +1008,11 @@ class UberForm():
# ====================================================================== #
# ------------------------- INPUT TEXT Element lazy functions ------------------------- #
def In(default_text ='', scale=(None, None), size=(None, None), auto_size_text=None, focus=False):
return InputText(default_text=default_text, scale=scale, size=size, auto_size_text=auto_size_text, focus=focus)
def In(default_text ='', scale=(None, None), size=(None, None), auto_size_text=None, focus=False, key=None):
return InputText(default_text=default_text, scale=scale, size=size, auto_size_text=auto_size_text, focus=focus, key=key)
def Input(default_text ='', scale=(None, None), size=(None, None), auto_size_text=None, focus=False):
return InputText(default_text=default_text, scale=scale, size=size, auto_size_text=auto_size_text, focus=focus)
def Input(default_text ='', scale=(None, None), size=(None, None), auto_size_text=None, focus=False, key=None):
return InputText(default_text=default_text, scale=scale, size=size, auto_size_text=auto_size_text, focus=focus, key=key)
# ------------------------- INPUT COMBO Element lazy functions ------------------------- #
def Combo(values, scale=(None, None), size=(None, None), auto_size_text=None, background_color=None):