[Tkinter-discuss] Grid Geometry Manager & ImageTk.PhotoImage

buckr02 francis_ryan_70 at hotmail.com
Thu Oct 22 17:46:19 CEST 2009


I cannot for the life of me figure this out.  I am trying to create a program
that will display images and have some functions to go along with it.  I am
using the grid manager to organize everything, and the basic framework is as
such:

* 2x2 grid
* Row 0, Column 0 is first image
* Row 0, Column 1 is second image
* Row 1, Column 0 is first toolbar
* Row 1, Column 1 is second toolbar

I am having trouble with the images, however, as they are being cut off
(only part of the image is being shown).  I am using Canvas objects to hold
the images.

I was able to throw in a few lines to fix most of the problems, but since it
isn't perfect, I'd like to get to the bottom of it.  The only noticeable
problem left is that if you load a vertical picture, there is space left to
the right of the image that is counted as part of the canvas.  I uploaded
the Python code and an image which demonstrates the problem.

http://www.nabble.com/file/p26012393/ForUpload.py ForUpload.py 
http://www.nabble.com/file/p26012393/DSC_1108.JPG DSC_1108.JPG 
-- 
View this message in context: http://www.nabble.com/Grid-Geometry-Manager---ImageTk.PhotoImage-tp26012393p26012393.html
Sent from the Python - tkinter-discuss mailing list archive at Nabble.com.



More information about the Tkinter-discuss mailing list