I’m trying to print out information into this window and not in the console. How do I do this?
from tkinter import *
print("Hello")
gui = Tk(className='StreetView Map')
# set window size
gui.geometry("500x200")
gui.mainloop()
I tried using the print function but nothing showed up in the window.
2
Answers
You can create a
Label
.You need to Create a Text widget where you can insert the test on GUI on Tkinter.
Given your code it would have to be done like this.