Python Forum
simple tkinter question function call not opening image
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
simple tkinter question function call not opening image
#4
You need to add photo.image = photo after photo = Imagetk.Pho..... The image is getting garbage collected. You need a refernce to it.
gr3yali3n likes this post
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags


Reply


Messages In This Thread
RE: simple tkinter question function call not opening image - by menator01 - Aug-01-2022, 06:13 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Tkinter: An image and label are not appearing. emont 7 676 Mar-21-2024, 03:00 PM
Last Post: deanhystad
  Using Tkinter inside function not working Ensaimadeta 5 5,089 Dec-03-2023, 01:50 PM
Last Post: deanhystad
  GUI Problem / call another function / fill QListwidget flash77 5 898 Jul-30-2023, 04:29 PM
Last Post: flash77
  Beginner question re: Tkinter geometry return2sender 3 967 Jun-19-2023, 06:19 PM
Last Post: deanhystad
  Tkinter GUI question texan1836 3 1,933 Apr-13-2023, 03:12 AM
Last Post: deanhystad
  My Background Image Is Not Appearing (Python Tkinter) HailyMary 2 4,374 Mar-14-2023, 06:13 PM
Last Post: deanhystad
  help needed running a simple function in pyqt5 diodes 27 8,488 Jan-24-2023, 12:19 PM
Last Post: GetOnData
  [Tkinter] Tkinter don't change the image DQT 2 1,639 Jul-22-2022, 10:26 AM
Last Post: menator01
  Tkinter won't run my simple function AthertonH 6 3,911 May-03-2022, 02:33 PM
Last Post: deanhystad
  [PyQt] Call a function in FormA from FormB panoss 3 1,910 Jan-30-2022, 07:45 PM
Last Post: panoss

Forum Jump:

User Panel Messages

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