class Class1: def __init__(self): self.atr1 = value1 self.atr2 = value2 def method_1(self): ??? class Class2: def __init__(self): self.atr_new = ??? def method_2(self): ...Hi, I want these 2 classes to work together. The Class1 has a lot of methods and is doing an important part of my program. The Class2 is just as an addition to Class1. What I want to use this Class2 for is:
After several code lines in Class1 are realised, it has to call Class2 with some of its atributes. Let´s give an example - Class1 creates a tkinter canvas and doing something there, method_1 should call Class2 with self.atr1 and self.atr2 atributes and that method Class2 should according to these 2 atributes do something in that tkinter canvas.
Can you help me with that? How to connect these 2 classes to work so?
Thank you in advance.