Python Tk Button
-
Button
import tkinter as tk
app = tk.Tk()
app.title('Single Button')
button = tk.Button(app,
text='Close',
width=25,
command=app.destroy,
#bg='lightblue',
)
button.pack()
app.mainloop()
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
Button
import tkinter as tk
app = tk.Tk()
app.title('Single Button')
button = tk.Button(app,
text='Close',
width=25,
command=app.destroy,
#bg='lightblue',
)
button.pack()
app.mainloop()