tkinter: How to make LARGE button using grid manager

Post here if you need help with creating a Graphical User Interface in Python.

tkinter: How to make LARGE button using grid manager

Postby rovf » Sun Oct 27, 2013 3:05 pm

(Python 2.3.5, OSX 10.4)

Using the grid manager, I would like to have a button, which spans two rows.

My first approach was this:

Code: Select all

The button created, has the same height as a button layed out without 'rowspan'; it is just centered between first and second row.

Of course I could explicitly set the height to "twice the height of a row in the grid", when creating the Button object, but I don't know in advance, how high a grid row will be.

Is there some (easy) way to have the button to be created automatically, so that it covers two grid rows? The result should look somehow like this:

Code: Select all
+  ENTRY FIELD                            +XXXXXXXXX+
+ ENTRY FIELD                             +XXXXXXXXX+

The whole XXXX... area should be a single button.

(Note: I've crossposted it now on
Posts: 25
Joined: Fri Aug 16, 2013 4:35 pm

Return to GUI

Who is online

Users browsing this forum: No registered users and 4 guests