python - Tkinter does not show up -
i downloaded canopy , use tkinter
, this, disabled pylab
, ran program still nothing showed up. additionally, tried tkinter on jupyter
, same problem.
how can make work?
here code :
import tkinter tk screen=tk.tk() screen.title("matplot graphies") screen.geometry("500x500")
i tried simple code see gui still nothing happens.
you need call mainloop()
method @ end.
import tkinter tk screen=tk.tk() screen.title("matplot graphies") screen.geometry("500x500") screen.mainloop()
Comments
Post a Comment