How to have a background image in Python interface Jump

One of the problems
during the new interface pops up when clicking the button tkinter encounter the following problems:
[_tkinter.TclError: image "pyimage2" does not exist ]

The reason is because this photoimage can only be loaded once and can not be used again, it is necessary another way of using the interface to complete the jump.

Second, the solution
used in the jump interface tk.Toplevel () to complete the interface jump

Third, the results


IV Summary
attach address stackflow blogger: https://stackoverflow.com/questions/26097811/image-pyimage2-doesnt-exist
questions address: https://stackoverflow.com/questions/20251161/tkinter-tclerror- image-pyimage3-doesnt-exist

Guess you like

Origin www.cnblogs.com/future-dream/p/10932575.html