The “cols” parameter in the “GridLayout”
I wrote this simple program to experiment with the GridLayout. The buttons are arranged correctly, but I noticed that the cols
parameter has no practical use. I can then assign any value to it which would not change anything, unless I set the variable rows
to zero. I don’t understand where the error is.