I want to call an existing instance from another class in to other class in Python but I don't know how to do this, help!
class ButtonSelectRetire(object):
def __init__(self):
self.enabled = True
self.checked = False
def onClick(self):
cbr = ButtontRetire()
cbr.off()
class ButtontRetire(object):
def __init__(self):
self.enabled = True
self.checked = False
def onClick(self):
pass
def on (self):
self.enabled = True
def off (self):
self.enabled = False