I want to clearly be able to see that my class LoginScrollbar is a class (also a tkinter Frame) composing of elements belonging to the LoginFrame and not for example the MainWindow which is launched after logging in as it is very unclear which classes are simpley frameworks to display elements under which Frame (main class). What is the best way to achieve this goal?
I don't know what to try.
This is my code I currently have, as you can see it's very unclear that MainWindow and MainWindowScrollbar are related. It's hard to tell that MainWindowScrollbar is a grouping that contains elements for MainWindow. It appears that LoginFrame,LoginScrollbar,Mainwindow,MainwindowScrollbar are all classes in the same classification.
class LoginFrame:
def __init__(self):
#somecode
class LoginScrollbar:
def __init__(self):
#somecode
class MainWindow:
def __init__(self):
#somecode
class MainWindowScrollbar:
def __init__(self):
#somecode
This is what I want, is this somehow possible without creating a seperate file for each frame of my program?
class LoginFrame:
def __init__(self):
#somecode
class LoginScrollbar:
def __init__(self):
#somecode
class LeftSideOfLogin:
def __init__(self):
#WidgetsForLeftSideOfLogin
class MainWindow:
def __init__(self):
#somecode
class MainWindowScrollbar:
def __init__(self):
#somecode
class MainWindowRightSide:
def __init__(self):
#WidgetsForRightSideOfMainWindow