Update method for Buttons

This commit is contained in:
MikeTheWatchGuy 2018-08-23 13:50:20 -04:00
parent dad31df547
commit a57fc79706
1 changed files with 3 additions and 0 deletions

View File

@ -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__()