Button widget in Python.
from tkinter import *
window = Tk()
window.title("Welcome to Coding Block")
window.geometry('350x200')
lable = Label(window, text="Hello World")
lable.grid(column=0, row=0)
button = Button(window, text="Clicked")
button.grid(column=1, row=0)
window.mainloop()
OUTPUT
No comments:
Post a Comment
Please do not any spam link in Comment Box