You will need to pass your bottom_frame to the page classes.
Here is an example from one of my projects. Not saying it's the best way but it worked for me.
Here is an example from one of my projects. Not saying it's the best way but it worked for me.
class RootWindow: '''Docstring''' def __init__(self, master): self.master = master self.logo_frame() # Initialize the logo_frame function/method Child(self.logoframe) # Give access for the logoframe parent to Child class # More code here .... def logo_frame(self): self.logoframe = ttk.Frame(self.master) # logoframe parent is root # More code here class Child: def __init__(self, logoframe): # Pass logoframe to class self.my_logo(logoframe) # make sure my_logo function has access to logoframe # Other code here def my_logo(self, logoframe): # pass logoframe to function self.logo = ttk.Label(logoframe, image=imgfile) # logoframe now has parent in root window # More code here
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags