Thursday, May 2, 2024

BCA PART B 6. Create a GUI using Tkinter module

 


from tkinter import *

# create root window
root = Tk()

# root window title and dimension
root.title("Welcome to VVFGC")
# Set geometry(widthxheight)
root.geometry('350x200')

#adding a label to the root window
lbl = Label(root, text = "Are you a Student?")
lbl.grid()

# Execute Tkinter
root.mainloop()

No comments:

Post a Comment