Python Forum
[Tkinter] Why is it so difficult to just ouput an image where I want?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Why is it so difficult to just ouput an image where I want?
#3
I converted it to a jpg using gimp and got an error so I tried anothe jpg file that I have been using for a while. Here's what I got:

Error:
Traceback (most recent call last): File "another_picture.py", line 7, in <module> logo=PhotoImage(file="9636a.jpg") File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 3374, in __init__ Image.__init__(self, 'photo', name, cnf, master, **kw) File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 3328, in __init__ self.tk.call(('image', 'create', imgtype, name,) + options) _tkinter.TclError: couldn't recognize data in image file "9636a.jpg"
Reply


Messages In This Thread
RE: Why is it so difficult to just ouput an image where I want? - by jpezz - Apr-04-2019, 12:16 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Switching from tkinter to gtk is difficult! snakes 1 1,558 Aug-08-2022, 10:35 PM
Last Post: woooee

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020