Python 3 Tkinter Display Multilines Text inside Label Widget GUI Desktop App Full Project For Beginners

 

 

 

main.py

 

 

# Import the tkinter library
from tkinter import *

# Create an instance of tkinter frame
win= Tk()

# Set the size of the Tkinter window
win.geometry("700x350")

# Add a label widget
label= Label(win, text= "Hello There!\n How are you?", font= ('Aerial', 17))
label.pack()

win.mainloop()

Leave a Reply