mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	bpo-40219: Lowered ttk LabeledScale dummy (GH-21467) (GH-23788)
(cherry picked from commit b9ced83cf4)
			
			
This commit is contained in:
		
							parent
							
								
									87e7a14ee3
								
							
						
					
					
						commit
						6ad5fd1482
					
				
					 2 changed files with 5 additions and 1 deletions
				
			
		|  | @ -1533,7 +1533,10 @@ def __init__(self, master=None, variable=None, from_=0, to=10, **kw): | ||||||
|         scale_side = 'bottom' if self._label_top else 'top' |         scale_side = 'bottom' if self._label_top else 'top' | ||||||
|         label_side = 'top' if scale_side == 'bottom' else 'bottom' |         label_side = 'top' if scale_side == 'bottom' else 'bottom' | ||||||
|         self.scale.pack(side=scale_side, fill='x') |         self.scale.pack(side=scale_side, fill='x') | ||||||
|         tmp = Label(self).pack(side=label_side) # place holder |         # Dummy required to make frame correct height | ||||||
|  |         dummy = Label(self) | ||||||
|  |         dummy.pack(side=label_side) | ||||||
|  |         dummy.lower() | ||||||
|         self.label.place(anchor='n' if label_side == 'top' else 's') |         self.label.place(anchor='n' if label_side == 'top' else 's') | ||||||
| 
 | 
 | ||||||
|         # update the label as scale or variable changes |         # update the label as scale or variable changes | ||||||
|  |  | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | Lowered :class:`tkinter.ttk.LabeledScale` dummy widget to prevent hiding part of the content label. | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Miss Islington (bot)
						Miss Islington (bot)