Bottom Page

Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 [Tkinter] Problem loading an image from directory into a Canvas object
#4
Quote:what is driving me mad is that I don't even get an error message
There is no error to report. You have to keep a copy of the image, otherwise it is garbage collected when the function, init in this case, exits, so does not show because it's gone. Make the photo variable an instance object.
Quote

Top Page

Messages In This Thread
RE: Problem loading an image from directory into a Canvas object - by woooee - Sep-02-2018, 06:47 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
  [Tkinter] Display Selected Image from Directory and Resize it EchoLi 0 94 Oct-02-2019, 06:54 PM
Last Post: EchoLi
  [Tkinter] Resizing image inside Canvas (with Canvas' resize) Gupi 2 2,137 Jun-04-2019, 05:05 AM
Last Post: Gupi
  Canvas refreshing problem Faruk 2 460 Dec-04-2018, 08:52 AM
Last Post: Faruk
  'list' object has no attribute 'plot' problem BaartCM 2 4,377 Feb-03-2018, 09:20 PM
Last Post: BaartCM
  Problem with pygame not switching the mouse image Mondaythe1st 6 2,177 Jul-26-2017, 10:53 PM
Last Post: metulburr
  Drag and drop image object vijaysagi 1 6,825 Apr-06-2017, 09:36 AM
Last Post: wuf

Forum Jump:


Users browsing this thread: 1 Guest(s)