How to make a button in python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to make a button in python?

How

17th Feb 2020, 6:42 AM
Yesyesyesyesyes
Yesyesyesyesyes - avatar
2 Answers
+ 6
You probably need to work with graphics libraries like tkinter for that one.
17th Feb 2020, 6:55 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 6
from tkinter import * from tkinter import ttk root = Tk() button = ttk.Button(root, text = "click me!") button.pack()
17th Feb 2020, 7:49 AM
Qasem