Skip to content
Advertisement

How do I fill empty space using grid system in tkinter?

I have 5 buttons with 3 of them in the first row and 2 in the second row. How do I fill the white space that is left? I tried the following:

JavaScript

Thanks in advance.

screenshot

Advertisement

Answer

There are multiple ways to do this. One of the easier ones is to play around with the Grid Layout.

Try this:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement