Skip to content

Latest commit

 

History

History
50 lines (28 loc) · 737 Bytes

Hello_World_With_Tkinter.md

File metadata and controls

50 lines (28 loc) · 737 Bytes

Hello World with Tkinter

First, we import the Tkinter package and create a window

from tkinter import *
window = Tk()

We set the title to the window.

window.title("Hello World with Tkinter")

We add a label to the window with format.

lbl = Label(window, text="Hello World", font=("Arial Bold", 50))

Then we will establish its position in the form using the grid function with its location.

lbl.grid(column=0, row=0)

And that's it, we'll have our Hello World

from tkinter import *
 
window = Tk()
 
window.title("Welcome to LikeGeeks app")
 
lbl = Label(window, text="Hello")
 
lbl.grid(column=0, row=0)
 
window.mainloop()