I have a class. Inside this is another class. Inside a function of this class. How can I pass attributes (self) of first class to second class
for example
class FirstClass():
def __init__(self, e) -> None:
self.e = e
# lots of other attributes...
def e(self):
pass
def App(self):
class myapp(overview.App):
def __init__(self) -> None:
super().__init__()
self.geometry("450x650")
print(self.e))
myapp().mainloop()
print(self.e)
one of the attributes of the first class. How do I do this?
It is important for me. Thanks.