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
					
				
					 2 changed files with 1 additions and 1 deletions
				
			
		|  | @ -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 | ||||||
|  |  | ||||||
|  | @ -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: | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue