[Tkinter-discuss] Changing image data in ttk does not work

Martin B spooky.ln at tbs-software.com
Sun Dec 18 21:09:52 CET 2011


V Sun, 18 Dec 2011 20:43:52 +0100
Martin B <spooky.ln at tbs-software.com> napsáno:

ugly solution i was found for now is 2 PhotoImages.

if current == 1:
	label1.config(image=photoimage1)
	label2.config(image=photoimage1)
	current=0
else:
	label1.config(image=photoimage2)
	label2.config(image=photoimage2)
	current=0

i never use PhotoImage.config() until this test.
i always used Label.config() for changing


More information about the Tkinter-discuss mailing list