Answers for "how to make it so when you press a button python does somthing"

1

add a button on tkinter

import tkinter
button1 = ttk.Button(self, text="anything", command=random command)
        button1.pack()
Posted by: Guest on March-23-2020

Code answers related to "how to make it so when you press a button python does somthing"

Python Answers by Framework

Browse Popular Code Answers by Language