Update method for Buttons
This commit is contained in:
parent
dad31df547
commit
a57fc79706
|
@ -715,6 +715,9 @@ class Button(Element):
|
||||||
self.ParentForm.TKroot.quit() # kick the users out of the mainloop
|
self.ParentForm.TKroot.quit() # kick the users out of the mainloop
|
||||||
return
|
return
|
||||||
|
|
||||||
|
def Update(self, new_text):
|
||||||
|
self.TKButton.configure(text=new_text)
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
try:
|
try:
|
||||||
self.TKButton.__del__()
|
self.TKButton.__del__()
|
||||||
|
|
Loading…
Reference in New Issue