Answers for "Write a Python GUI program to add a button in our application using tkinter module"

0

add button python

from tkinter import *


master = Tk()

#program you want the button to execute
def closewindow():
    exit()

#set up button
button = Button(master, text="close window", command=closewindow)

button.pack()

mainloop()
Posted by: Guest on July-06-2020

Code answers related to "Write a Python GUI program to add a button in our application using tkinter module"

Python Answers by Framework

Browse Popular Code Answers by Language