This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Canvas's create_image method not work in some situaction.
Type: behavior Stage: resolved
Components: Tkinter Versions: Python 3.9, Python 3.8, Python 3.7, Python 3.6
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: MangoIceCup
Priority: normal Keywords:

Created on 2020-11-27 08:04 by MangoIceCup, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
test.py MangoIceCup, 2020-11-27 08:04
Messages (1)
msg381929 - (view) Author: IceWorm (MangoIceCup) Date: 2020-11-27 08:04
create a window using Tk()
create canvas
create image using create_image
enter main loop 
   IT OK ABOVE
-------------------------
   BUT BELOW WILL not show image. just extract code to a method.
def setupUI(winddow):
    create canvas
    create image using create_image

create a window using Tk()
call setupUI(window)
enter main loop
History
Date User Action Args
2022-04-11 14:59:38adminsetgithub: 86645
2020-11-27 08:30:51MangoIceCupsetstatus: open -> closed
stage: resolved
2020-11-27 08:04:38MangoIceCupcreate