[Tutor] Tkinter grid layout question

Alan Gauld alan.gauld at yahoo.co.uk
Sat Oct 28 08:09:33 EDT 2023


On 28/10/2023 01:40, Phil wrote:

>> Can you use ASCII art to show what you are aiming for?
> 
>   |-------------------|  |------------------|
>   |                        |  |   frame 2     |
>   |    image         |  |                      |
>   |                        |  |           X         |
>   |   250 x 230    |  |        X   X       |
>   |                        |  |          X          |
>   |   frame 1       |  |                      |
>   |-------------------|  |------------------|

Unfortunately that hasn't worked.

Can you strip out all code except the UI layout and just
post it, that might be simplest.

I'm kind of intrigued to see
a) exactly what you are trying to do
and
b) How it might be done most elegantly in Tkinter


> Using two frames is a far better approach which worked
> without any editing at all. Just a bit of copying and pasting
> from the original code.

Again, I'm not sure how that would work.

> By the way, each button is 50 x 50 and not the usual rectangular shape.

That shouldn't be an issue.

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos





More information about the Tutor mailing list