0

Question as above, not much more I can say

tab2.content.append(
            Checkbutton(
                tab2,
                text="Fullscreen",
                command=lambda: settings.update({'Fullscreen': not settings['Fullscreen']})
                ).grid(row=1))
        
martineau
  • 119,623
  • 25
  • 170
  • 301

1 Answers1

1

Your code has issue that None will be appended to tab2.content because you append the result of grid().

Use:

cb = Checkbutton(tab2, text="Fullscreen", 
                 command=lambda: settings.update({'Fullscreen': not settings['Fullscreen']}))
cb.grid(row=1)
cb.select() # make it checked
tab2.content.append(cb)
acw1668
  • 40,144
  • 5
  • 22
  • 34