Re: PhotoImage Programming Software Development by Thropian …pic == "frhall": info_dict["gif1"] == PhotoImage(file = frhall) if pic == "frlhall": info_dict[&…quot;gif1"] == PhotoImage(file = frlhall) info_dict["wall"] = wall canvas.create_image… PhotoImage Programming Software Development by Thropian …() canvas = Canvas(frame, width = 225, height = 225) canvas.pack() gif1 = PhotoImage(file = 'Fhall.gif') canvas.create_image(0, 0, image = gif1, anchor… Re: PhotoImage Programming Software Development by Thropian well I can't find any help on photoimage is there any sort of alternatives? Re: PhotoImage Programming Software Development by TrustyTony …' class App: def __init__(self, master): frame = Frame(master) gif1 = PhotoImage(file = myimage) canvas = Canvas(frame, width = 225, height = 225) canvas… Re: PhotoImage doesn't seem to be working with a button Programming Software Development by katharnakh …(self, image=image1)[/QUOTE] I was wondering is PhotoImage is a class or function? when this following statement… can return an object, [code=Python]image1=PhotoImage(file="image.gif")[/code] why not here….. [code=Python]self.Button = Button(self, image=PhotoImage(file="image.gif"))[/code] Please correct if … PhotoImage doesn't seem to be working with a button Programming Software Development by a1eio … to do it is to create the image in a PhotoImage object. I've done this and then stuck it onto…, doesn't respond. [code=python] self.Button = Button(self, image=PhotoImage(file="image.gif")) [/code] any help greatly appreciated… Re: PhotoImage doesn't seem to be working with a button Programming Software Development by bumsfeld [CODE=python]from Tkinter import * import inspect # find out if Tkinter's PhotoImage is a class print inspect.isclass(PhotoImage) # True [/CODE] Re: PhotoImage doesn't seem to be working with a button Programming Software Development by katharnakh hi, bumpsfeld [Quote]from Tkinter import * import inspect # find out if Tkinter's PhotoImage is a class print inspect.isclass(PhotoImage)[/Quote] that was a nice snippet, thanks. hey, jrcagle thanks for your reply too. Your reply was convincing.. thanks a lot. regards, kath. Re: PhotoImage doesn't seem to be working with a button Programming Software Development by bumsfeld Keyword variable image=object needs an object not a function call. You need to use image1=PhotoImage(file="image.gif") and then self.Button = Button(self, image=image1) Re: PhotoImage doesn't seem to be working with a button Programming Software Development by jrcagle …. So this line [code=Python] self.Button = Button(self, image=PhotoImage(file="image.gif")) [/code] just won't work… PhotoImage not Displaying (Tkinter) Programming Software Development by Arbolito ….Frame(F, relief="sunken", border=1) GameBoardImage = tk.PhotoImage(file=hang.boardnumber) GameBoardLabel = tk.Label(ImageFrame,image=GameBoardImage) GameBoardLabel… Re: PhotoImage Programming Software Development by Thropian == is my downfall Closing an image opened by PhotoImage Programming Software Development by bharatk …self): filename =askopenfilename(filetypes=imageTypes) image1 = ImageTk.PhotoImage(Image.open(filename)) panel1 = Label(self, image=… img = Image.open(im) image1 = ImageTk.PhotoImage(img) panel1 = Label(self, image=image1) panel1… Problem displaying tkinter PhotoImage Programming Software Development by sureshk75 …scr_width, scr_height)) self.call('wm', 'iconphoto', self._w, tk.PhotoImage(file="icon.png")) # Temporary Placeholders ContainerMain(self, …height=400, width=200) # temporary Placeholders image = tk.PhotoImage(master=self, file="side.png") self.configure(text… Re: Problem displaying tkinter PhotoImage Programming Software Development by Gribouillis Hello, effbot.org says to keep a reference to the image object to prevent it from being garbage collected. You could try self.our_image = tk.PhotoImage(master=self, file="side.png") [http://effbot.org/tkinterbook/label.htm](http://effbot.org/tkinterbook/label.htm) Re: PhotoImage doesn't seem to be working with a button Programming Software Development by a1eio I LOVE YOU!!!!!! hehe, thanks it works now. a1eio Re: PhotoImage doesn't seem to be working with a button Programming Software Development by a1eio hehe, i agree with you, which is why i made the mistake in the first place and didn't even notice it. But yea, that'd be a nice answer cause i havn't a clue. thanks, a1eio Re: PhotoImage doesn't seem to be working with a button Programming Software Development by bumsfeld The other problem with Tkinter is that you are going back and forth between two languages, TCL and Python, so Python rules don't always apply. Re: PhotoImage doesn't seem to be working with a button Programming Software Development by a1eio Ah HA! Very well explained jrcagle, thanks a bunch. a1eio Re: PhotoImage not Displaying (Tkinter) Programming Software Development by KWL This isn't a reply as such but I'm a newcomer and couldn't find a way to start a new thread. It's not completely new anyway - why is it so difficult to display images in Python? I picked up the following lines of code from Internet discussions:- import Image, ImageTk image = Image.open("p.gif") image.show() Whenever I try … Re: PhotoImage not Displaying (Tkinter) Programming Software Development by jgritty [QUOTE=KWL;1366292]This isn't a reply as such but I'm a newcomer and couldn't find a way to start a new thread. It's not completely new anyway - why is it so difficult to display images in Python? I picked up the following lines of code from Internet discussions:- import Image, ImageTk image = Image.open("p.gif") image.show()… Re: PhotoImage not Displaying (Tkinter) Programming Software Development by KWL [QUOTE=jgritty;1385677]Where is p.gif? Is it in C:\Documents and Settings\Something\Something ? Try making a directory at the root of C and calling it images or something. Also, I don't think image.show() is going to do what you think it is. On my mac it launches an external image viewer. Preview specifically. On windows it will probably… Re: Closing an image opened by PhotoImage Programming Software Development by vegaseat If you put the image on a canvas, you can delete it with something like canvas.delete(image) Re: Closing an image opened by PhotoImage Programming Software Development by bharatk vegaseat, thank you! I used the canvas & I'm able to get what I wanted. Your quick answers have been a gr8 help for newbies like me. Python GUI build: Logic Complications and Mistakes Programming Software Development by mattyd …/Python/drpython-161/phillies.py", line 94, in ? photo1 = PhotoImage(file=image1) File "C:\Python24\lib\lib-tk\Tkinter… (200,325, image=photo7) #---TEST LOAD from int RNG image100 = PhotoImage(file='grey1.gif') # PIC for button---note 100! # create a… Grid & RadioButtons Programming Software Development by slasel …set("try again") #################################### BUTTONS ################################# pol3=ImageTk.PhotoImage(file="pol3.gif") Pol3=Button(root,height=72….image=primase Primase.grid(row=3) helicase=ImageTk.PhotoImage(file="helicase.gif") Helicase=Button(root,… Quickly urgent please_creating buttons with loops Programming Software Development by slasel …set("try again") #################################### BUTTONS ################################# pol3=ImageTk.PhotoImage(file="pol3.gif") Pol3=Button(root,height=72….image=primase Primase.grid(row=3) helicase=ImageTk.PhotoImage(file="helicase.gif") Helicase=Button(root,… Need Help Programming Software Development by rybro1 …) panel2.image= image2 def addition(): panel2.destroy() image3 = tk.PhotoImage(file="difficulty.gif") w = image3.width() h = …panel4.destroy() main_menu() def about(): panel2.destroy() image3 = tk.PhotoImage(file="author.gif") w = image3.width() h = … [PYTHON] Place pieces on a chessboard Programming by OnlyThierry …="./pieces_image/blackp.gif") blackq=PhotoImage(file="./pieces_image/blackq.gif") blackr=PhotoImage(file="./pieces_image/blackr.gif") #…="./pieces_image/whitep.gif") whiteq=PhotoImage(file="./pieces_image/whiteq.gif") whiter=PhotoImage(file="./pieces_image/whiter.gif")… Python Tk GUI Gmail Client. Programming Software Development by Sinnocence … photo5 = ImageTk.PhotoImage(image5) image12 = Image.open('messagewaiting.png') photo12 = ImageTk.PhotoImage(image12) image13 =… Image.open('toaddr.png') photo13 = ImageTk.PhotoImage(image13) ###INSERT### …