[Geany-Users] Geany on Raspberry Pi... can't see Tkinter window
estephan at xxxxx
Sun May 20 01:25:04 UTC 2018
I have a problem on the Raspberry Pi where Geany will not show the Tkinter window when I am making a simple Python app with tkinter graphics.
I tried asking on Stack Exchange but no luck… I am sorry that I will just paste the question below, it’s the easiest way to be clear about it!
My problem: When I run my simple graphics tkinter python script (pasted below) in Geany, it "runs" ... BUT it simply shows the white-text-on-black script window proudly announcing that script completed... while the tkinter graphics window created by the script does not appear! *** When I do this in another IDE, Thonny, the graphics window appears. How do I get Geany to show this script's graphics window correctly? THANKS!
—— below is the code (from a learn-Python book)
from Tkinter import *
window = Tk()
c = Canvas(window, height = 300, width=400)
words=c.create_text(200,280,text='I am an alien!')
c.itemconfig(words, text='Give me my hat back!')
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users