git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Center ttk.Checkbox in grid column


On 2019-06-08 20:01, Rich Shepard wrote:
> On Sat, 8 Jun 2019, MRAB wrote:
> 
>> In answer to your question, widgets are centred by default; you have to
>> tell it if you _don't_ want a widget centred horizontally or centred
>> vertically.
> 
> That's what I thought but the little box and button label don't look
> centered but left justified.
> 
A workaround is to pack the widget in a tk.Frame and then put the frame 
in the grid cell.