From a57fc797063b74327b34d3656da017150db451c4 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Thu, 23 Aug 2018 13:50:20 -0400 Subject: [PATCH] Update method for Buttons --- PySimpleGUI.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index 78430d43..1b34a341 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -715,6 +715,9 @@ class Button(Element): self.ParentForm.TKroot.quit() # kick the users out of the mainloop return + def Update(self, new_text): + self.TKButton.configure(text=new_text) + def __del__(self): try: self.TKButton.__del__()