I was wondering if there was a way to print text on a tkinter root window, if it is possible please let me know how.
If by 'Root window' u mean window = Tk():
from tkinter import *
window = Tk()
window.geometry("800x600")
# This line should give you a text line in the top-left of the window
Label(window,text = "Enter your text here").grid(row = 1, column = 1)
window.mainloop()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.