Skip to content

Commit

Permalink
seventh project
Browse files Browse the repository at this point in the history
  • Loading branch information
itsaryan72 committed Nov 18, 2024
1 parent 4655f40 commit 6e7ec3e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions 7.Basic GUI(Tkinter)/file.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from tkinter import *

root = Tk()

root.title("Basic GUI by Tkinter")
root.geometry('400x400')

lb = Label(root,text="Click me?")
lb.grid()

def clicked():
lb.configure(text="I just got clicked")

btn = Button(root, text="Click me",
fg = "red", command=clicked)

btn.grid(column=1,row=0)
root.mainloop()

0 comments on commit 6e7ec3e

Please sign in to comment.