Skip to content
Advertisement

How to create a proper CheckButton in Tkinter?

Im trying to create a CheckButton in tkinter based on the items I have in my equipment list. The CheckButton has been created but not all the items that are in equipment are visible in the app. Is it because my items are to large?

This is my code:

JavaScript

This is how the tkinter app looks like:

enter image description here

Advertisement

Answer

This happens, because in:

JavaScript

you are packing every Checkbutton to the same position. Hence, with every iteration, the previous Checkbutton is replaced and only the one for your last item ('Streamcell highspeed collision extra large version 8.5') shows.

To correct this, you could, for example, do this instead:

JavaScript
Advertisement