Is there a way for the Mail class to inherit the Program class, except for the way the Program instance is passed to Mail ? Something other options do not work for me.
from kivy.app import App class Mail(object): def __init__(self, program): self.pr = program def get_var(self): print self.pr.var class Program(App): def __init__(self, **kvargs): super(Program, self).__init__(**kvargs) self.var = True b= Mail(self) b.get_var() program = Program()
class Mail(Program):will not work? - Alexey ShimanskyMailandProgramads? - user194374