Re: [Tutor] Tkinter pass-by-reference query

2006-05-20 Thread Henry Finucane
Thanks for your help, I've gotten it to work. On 5/20/06, Alan Gauld <[EMAIL PROTECTED]> wrote: > > While attempting to add images to a canvas programmatically, I wrote > > the following: > > for i in os.listdir('./icons/terrain'): > > ... img = PhotoImage(file='./icons/terrain/'+i) > > self.terr

Re: [Tutor] Tkinter pass-by-reference query

2006-05-20 Thread Alan Gauld
> While attempting to add images to a canvas programmatically, I wrote > the following: > for i in os.listdir('./icons/terrain'): > ... img = PhotoImage(file='./icons/terrain/'+i) > self.terrainScreen.create_image(int(self.terrainScreen["height"])-50, > > (int(self.terrainScreen["height"])-50), >

Re: [Tutor] Tkinter pass-by-reference query

2006-05-19 Thread Kent Johnson
Henry Finucane wrote: > While attempting to add images to a canvas programmatically, I wrote > the following: > for i in os.listdir('./icons/terrain'): > self.terrainScreen["height"] = str(int(self.terrainScreen["height"])+50) > debug(self.terrainScreen["height"]+" height of terrainScre

[Tutor] Tkinter pass-by-reference query

2006-05-19 Thread Henry Finucane
While attempting to add images to a canvas programmatically, I wrote the following: for i in os.listdir('./icons/terrain'): self.terrainScreen["height"] = str(int(self.terrainScreen["height"])+50) debug(self.terrainScreen["height"]+" height of terrainScreen",5) img = PhotoIm