Merge pull request #189 from MikeTheWatchGuy/Dev-latest

Fix for button not updating when Update changed the text
This commit is contained in:
MikeTheWatchGuy 2018-09-10 17:36:14 -04:00 committed by GitHub
commit 09e6c1d88a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,6 @@ def Timer():
current_time = int(round(time.time()*100)) - start_time current_time = int(round(time.time()*100)) - start_time
else: else:
button, values = form.Read() button, values = form.Read()
# --------- Do Button Operations -------- # --------- Do Button Operations --------
if values is None or button == 'Exit': if values is None or button == 'Exit':
break break

View File

@ -924,6 +924,7 @@ class Button(Element):
try: try:
if new_text is not None: if new_text is not None:
self.TKButton.configure(text=new_text) self.TKButton.configure(text=new_text)
self.ButtonText = new_text
if button_color != (None, None): if button_color != (None, None):
self.TKButton.config(foreground=button_color[0], background=button_color[1]) self.TKButton.config(foreground=button_color[0], background=button_color[1])
except: except: