Merge pull request #1943 from PySimpleGUI/Dev-latest
Fixed Column scrolling, again. New test function == main function
This commit is contained in:
		
						commit
						d7178d483d
					
				
					 1 changed files with 5 additions and 3 deletions
				
			
		|  | @ -1,5 +1,5 @@ | ||||||
| #!/usr/bin/python3 | #!/usr/bin/python3 | ||||||
| version = __version__ = "4.4.1 Released" | version = __version__ = "4.5.0.1 Unreleased Columns Scroll" | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| #  888888ba           .d88888b  oo                     dP           .88888.  dP     dP dP | #  888888ba           .d88888b  oo                     dP           .88888.  dP     dP dP | ||||||
|  | @ -3836,8 +3836,8 @@ class TkScrollableFrame(tk.Frame): | ||||||
| 
 | 
 | ||||||
|         self.bind('<Configure>', self.set_scrollregion) |         self.bind('<Configure>', self.set_scrollregion) | ||||||
| 
 | 
 | ||||||
|         self.TKFrame.bind_all("<MouseWheel>", self.yscroll)     # THIS IS IT! The line of code that enables the column to be scrolled with the mouse! |         self.canvas.bind("<MouseWheel>", self.yscroll)     # THIS IS IT! The line of code that enables the column to be scrolled with the mouse! | ||||||
|         self.TKFrame.bind_all("<Shift-MouseWheel>", self.xscroll)     # THIS IS IT! The line of code that enables the column to be scrolled with the mouse! |         self.canvas.bind("<Shift-MouseWheel>", self.xscroll)     # THIS IS IT! The line of code that enables the column to be scrolled with the mouse! | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | @ -9813,6 +9813,7 @@ def ChangeLookAndFeel(index): | ||||||
|                    input_text_color=colors['TEXT_INPUT']) |                    input_text_color=colors['TEXT_INPUT']) | ||||||
|     except:  # most likely an index out of range |     except:  # most likely an index out of range | ||||||
|         print('** Warning - Look and Feel value not valid. Change your ChangeLookAndFeel call. **') |         print('** Warning - Look and Feel value not valid. Change your ChangeLookAndFeel call. **') | ||||||
|  |         print('valid values are', list_of_look_and_feel_values()) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | @ -11448,6 +11449,7 @@ rgb = RGB | ||||||
| set_global_icon = SetGlobalIcon | set_global_icon = SetGlobalIcon | ||||||
| set_options = SetOptions | set_options = SetOptions | ||||||
| 
 | 
 | ||||||
|  | test = main | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| # -------------------------------- ENTRY POINT IF RUN STANDALONE -------------------------------- # | # -------------------------------- ENTRY POINT IF RUN STANDALONE -------------------------------- # | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue