Re: [Tkinter-discuss] Possibly n00bish question about ImageTk

2007-06-28 Thread John McMonagle
[EMAIL PROTECTED] wrote: > BTW you use 'place' and 'pack' for the label. As I understood > your supposed to use exactly ONE geometry handler for a gui element in tk. > This really only applies to widgets which are packed/placed/gridded into the same parent container.In his example he is pac

Re: [Tkinter-discuss] Possibly n00bish question about ImageTk

2007-06-28 Thread mkieverpy
Hi Alan, in your function 'moo' 'pi' is a local variable which gets garbage collected when the function returns. Thus your image goes to gc nirvana. Making 'pi' global like this def moo(master): global pi img = Image.open('plotfig.png') f = Tkinter.Frame(master, width=800, height=600