Hey everyone, this should be simple, but I keep running into errors so help is greatly appreciated.
I have a large class, call it class A, which has several methods. Most of these methods modify data.
ClassA()
def __init(X,Y,Z)
...
..
def data_mod1():
...
def data_mod2():
...
I'm dealing with a large GUI program, which has several connected buttons. Therefore, I have another class to do nothing but handle button operations. Most of these operations are stylistic (changing colors and names). For example:
class Button_manager()
def color_style1():
....
def attribute_style1():
....
Here is the issue. At some point, it is advantageous to change the data at the level of the button_manager. Therefore, I need to borrow a method from ClassA. For example, the method
def data_mod1():
Ought to be callable from the button_manager or ClassA. I can't for the life of me get this to work though. I've tried following example on inheritance and stuff, but because the Button_Manager class is called through ClassA, it seems to give me issues. Basically, how do I load Button_Manager to share this method.