Feb-15-2021, 05:29 AM
(This post was last modified: Feb-15-2021, 05:29 AM by deanhystad.)
Startframe is subclassed from Frame. Parent/child is a different relationship. Replace parent with superclass and child with subclass in your description.
You can see all the attributes of any class, built-ins, downloaded or your own modules. In many cases you can even see the code. From the Python shell:
I think the main thing you are getting from frame is the ability to add child widgets. Frame/Button is a parent/child relationship. Not class inheritannce, but the parent Frame object contains the child Button object
You can see all the attributes of any class, built-ins, downloaded or your own modules. In many cases you can even see the code. From the Python shell:
Output:>>> import inspect
>>> print(inspect.getsource(tkinter.Frame.pack_forget))
def pack_forget(self):
"""Unmap this widget and do not use it for the packing order."""
self.tk.call('pack', 'forget', self._w)
Not very interesting since all the fun stuff is done in "C".I think the main thing you are getting from frame is the ability to add child widgets. Frame/Button is a parent/child relationship. Not class inheritannce, but the parent Frame object contains the child Button object