Aug-15-2020, 10:44 AM
Note: Namespace flooding with * imports
so when it calls
def Load_Data(self):
indentation should be level with def __init__(self, parent):
Error:TypeError: __init__() missing 1 required positional argument: 'parent'
is because when doing the followingclass Rents_tab(Frame): def __init__(self, parent):creating an instance of
Rents_tab
expects to be passed a variable for the parameter parent
Error:AttributeError: 'Rents_tab' object has no attribute 'geometry'
is because when doing the followingclass Application(Frame): def __init__(self, parent): Frame.__init__(self, parent) #set window size parent.geometry("1600x1600")an instance of
Rents_tab
is passed in as the parent
into Application
so when it calls
parent.geometry("1600x1600")
, Rents_tab
does not have the attribute 'geometry'