Let's assume I have window with button as in code:
settings_window = tk.Toplevel()
settings_window.wm_title('Ustawienia')
grid = tk.BooleanVar()
c1 = tk.Checkbutton(settings_window, offvalue=False, onvalue=True, text="siatka", variable=grid, indicatoron=True).grid(row=0, column=0, sticky='W')
And how I can achieve situation when after start button will be signed:
☑
Instead of being empty (not signed):
☐
I tried to use:
state option with 'active', 'normal', and 'disabled',
indicatoron option with True,
and:
grid.set(True),
before CheckButton.
None of them helped.