hiding a frame in tkinter

faramarz yari faramarzyari at gmail.com
Tue Mar 29 02:40:29 EST 2005


lots of thanks to the nice  guys of python community,

i do it ,and it works just as i want,
but unfourtunatly a new problem arise.
the problem is :
when i use pack_forget , i just work,
but suppose we want to call it in func or method,
i choose to test it in a func:

def do_unpack(f):
    f.pack_forget()
...
b=Button(f3,text="hello",command=do_unpack(f3))

it does not work & the interpreter does not claim any error.
so how can i send a pointer (refrence) of an object to a func or method.
should i use any prop. of frame instance(ex:f3)?
in other words i want to know how  can i send
arg as refrence in python.(ex: object of general MyClass)?
thank you again





i am a real newbie in python  & tkinter,



More information about the Python-list mailing list