Learn Before
Concept icon
Concept

Creating Buttons with Tkinter

A Button widget is similar to a Label widget, but it is clickable and can call a function.

button1 = tk.Button(text="Click Me", foreground="red") button1.pack()
Image 0

0

1

Concept icon
Updated 2021-08-17

References


Tags

Python Programming Language

Data Science