about Frame.__init__(self)

2005-04-27 Thread yang
I just a newbie of python Now I found that almost every program use Tkinter have this line class xxx(xxx): """x""" def __init__(self): """x""" Frame.__init__(self) . ... the line "Frame.__init__(self)" puzzle me. why use it lik

Re: about Frame.__init__(self)

2005-04-27 Thread M.E.Farmer
Hello , I am no expert on tkinter but this seems like an inheritance question. When you define a class that inherits from something ( Frame ) and you define an __init__ in your class you have to explicitly call the __init__ of your base class. class xxx(base): """ This class doesn't have an __

about Frame.__init__(self)

2005-04-27 Thread yang
I just a newbie of python Now I found that almost every program use Tkinter have this line class xxx(xxx): """x""" def __init__(self): """x""" Frame.__init__(self) . ... the line "Frame.__init__(self)" puzzle me. why use it lik