I'm using Python 3.5.
I want to make a button invisible and I found it:
import tkinter
from tkinter import *
def hide_btn():
def hide_me(event):
event.widget.pack_forget()
root = Tk()
hiddenbtn = Button(root, text = 'Hello World')
hiddenbtn.place(x = 0, y = 0)
hiddenbtn.bind('<Button-1>', hide_me)
hiddenbtn.pack()
root.mainloop()
hide_btn()
It works well, but I want to make the button clicked.
Is there any way to make it clicked?
place/packit until you do want it to be shown? (Also don't use bothplaceandpackfor widgets in the same master, let alone for one widget. Pick one.)