From c482dee57e958231aa8492bba08071e5e91171d1 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Mon, 20 Aug 2018 21:59:00 -0400 Subject: [PATCH] Update method for InputText element --- PySimpleGUI.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index eed9167c..751ef6de 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -236,6 +236,8 @@ class InputText(Element): super().__init__(ELEM_TYPE_INPUT_TEXT, scale=scale, size=size, auto_size_text=auto_size_text, background_color=bg, text_color=fg, key=key) + def Update(self, new_value): + self.TKStringVar.set(new_value) def __del__(self): super().__del__()