Center ttk.Checkbox in grid column
MRAB
python at mrabarnett.plus.com
Sat Jun 8 15:44:30 EDT 2019
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.
More information about the Python-list
mailing list