Question about .grid( ) and when to apply it tkinter video 2

by: martin_heroux, 7 years ago


In the __init__ method of the main class, frame.grid( ) is used AFTER the frame has been added to the dictionary containing all the frames:

self.frames[F] = frame
frame.grid(row=0, column=0, sticky="nesw")

I would have thought that the self.frames would have stored a version of the frame up to that point (i.e., with grid not applied to it), and that the subsequent call to .grid( ) would not apply to the stored version of frame (i..e, the one in the dictionary).

Any clarification on how this might work would be appreciated.



You must be logged in to post. Please login or register an account.