How to find an object existing?
huey.y.jiang at gmail.com
huey.y.jiang at gmail.com
Wed Jun 13 23:14:31 EDT 2018
Hi All,
root = Tkinter.Tk()
button = Tkinter.Button(root, text="Find me")
button.pack()
I created a button, Python object. I recall I can check this object existing by using winfo, such as winfo.exists(button). However, I forgot which super class contains this winfo method. I printed out dir(os), dir(sys), dir(Tkinter), but did not find this winfo method. I wonder who will be kindly drop down a few lines? Thanks a lot!
Huey
More information about the Python-list
mailing list