Re: image resize doesn't work

2010-08-12 Thread Aahz
In article mailman.1399.1280702057.1673.python-l...@python.org, Chris Hare ch...@labr.net wrote: And I see now what I did wrong - thanks for putting up with the questions. Posting that information is useful for any other newbies who might be following along -- Aahz (a...@pythoncraft.com)

image resize doesn't work

2010-08-01 Thread Chris Hare
I have the following chunk of code. Although it seems to execute fine, no errors, the image is never resized. What am I missing? imagePNG = Image.open(image.png) photo = ImageTk.PhotoImage(imagePNG canvasWidth = 300 canvasHeight

Re: image resize doesn't work

2010-08-01 Thread rantingrick
On Aug 1, 7:35 am, Chris Hare ch...@labr.net wrote: I have the following chunk of code.  Although it seems to execute fine, no errors Not True! it contains syntax errors. Check the posted code and next time post all the code. -- http://mail.python.org/mailman/listinfo/python-list

Re: image resize doesn't work

2010-08-01 Thread Chris Hare
On Aug 1, 2010, at 10:24 AM, rantingrick wrote: On Aug 1, 7:35 am, Chris Hare ch...@labr.net wrote: I have the following chunk of code. Although it seems to execute fine, no errors Not True! it contains syntax errors. Check the posted code and next time post all the code. --

Re: image resize doesn't work

2010-08-01 Thread Peter Otten
Chris Hare wrote: On Aug 1, 2010, at 10:24 AM, rantingrick wrote: On Aug 1, 7:35 am, Chris Hare ch...@labr.net wrote: I have the following chunk of code. Although it seems to execute fine, no errors Not True! it contains syntax errors. Check the posted code and next time post all the

Re: image resize doesn't work

2010-08-01 Thread Chris Hare
On Aug 1, 2010, at 1:08 PM, Peter Otten wrote: Chris Hare wrote: On Aug 1, 2010, at 10:24 AM, rantingrick wrote: On Aug 1, 7:35 am, Chris Hare ch...@labr.net wrote: I have the following chunk of code. Although it seems to execute fine, no errors Not True! it contains syntax

Re: image resize doesn't work

2010-08-01 Thread Peter Otten
Chris Hare wrote: Thanks for the help. My one week of python is getting a workout. I have shortened it all down and made it a standalone example, using yours as a model. Your example, works, but it will take a lot of effort to retrofit it into the code I have. (which is maybe not a bad

Re: image resize doesn't work

2010-08-01 Thread Chris Hare
And I see now what I did wrong - thanks for putting up with the questions. On Aug 1, 2010, at 4:32 PM, Peter Otten wrote: Chris Hare wrote: Thanks for the help. My one week of python is getting a workout. I have shortened it all down and made it a standalone example, using yours as a

Re: image resize doesn't work

2010-08-01 Thread Chris Hare
Thanks Peter - I know what I said sounded stupid :-) I have been working with Python for a week and as you know sometimes it is easier to learn by seeing what you did wrong as compared to what should have been done with the same example. I loved your code by the way - Thanks for help just