Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python Tkinter Button Widget

import tkinter as tk
r = tk.Tk()
r.title('Testing Button Widget')
# After pressing button our code will be stop
button = tk.Button(r, text='Stop', width=25, command=r.destroy)
button.pack()
r.mainloop()
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Python #Tkinter #Button #Widget
ADD COMMENT
Topic
Name
6+8 =