Showing posts with label Adding a button widget in Python.. Show all posts
Showing posts with label Adding a button widget in Python.. Show all posts

Tuesday, August 4, 2020

Adding a button widget in Python.

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

Button widget in Python.