Merge pull request #189 from MikeTheWatchGuy/Dev-latest
Fix for button not updating when Update changed the text
This commit is contained in:
commit
09e6c1d88a
|
@ -37,7 +37,6 @@ def Timer():
|
|||
current_time = int(round(time.time()*100)) - start_time
|
||||
else:
|
||||
button, values = form.Read()
|
||||
|
||||
# --------- Do Button Operations --------
|
||||
if values is None or button == 'Exit':
|
||||
break
|
||||
|
|
|
@ -924,6 +924,7 @@ class Button(Element):
|
|||
try:
|
||||
if new_text is not None:
|
||||
self.TKButton.configure(text=new_text)
|
||||
self.ButtonText = new_text
|
||||
if button_color != (None, None):
|
||||
self.TKButton.config(foreground=button_color[0], background=button_color[1])
|
||||
except:
|
||||
|
|
Loading…
Reference in New Issue