class Controller(object):
    def __init__(self):
        self.CasU_ControllerObj = CasU_Controller(self)

    def start(self):
        self.CasU_ControllerObj.start()
        print("x")
class Controller(object):
    def __init__(self):
        self.CasU_ControllerObj=CasU_Controller(self)
        self.DD_ControllerObj=Controler()
    def start(self):
        self.CasU_ControllerObj.start()
        self.DD_ControllerObj.iniatiateApp()
        print("x")
class SuperController(object):
    def __init__(self):
        self.CasU_ControllerObj=CasU_Controller(self)
        self.nextPageVar=0
        self.Choix=-1
        self.touchePressee=1
        
    def start(self):
        self.DD_ControllerObj=Controler(self)
        a=0
        while (self.Choix!=0 and a!=10 and self.touchePressee==1):
             self.touchePressee=0
             #Choix=self.DD_ControllerObj.nextPageVar
             #Choix=self.DD_ControllerObj.exitDialog
             if (self.touchePressee==0 and self.Choix==1):
                self.DD_ControllerObj=Controler(self)
             if (self.touchePressee==0 and self.Choix==2): 
                Choix=self.CasU_ControllerObj.start()
             #print(globvar)
             print("exit_code:", self.Choix)
             a=a+1


    def exitDialog(self):
        self.Choix=0
    
    def versDD(self):
        self.Choix=1

    def versCasU(self):
        self.Choix=2
        print("ceci ", self.Choix)
        self.touchePressee=1
class Controller(object):
    def __init__(self):
        self.CasU_ControllerObj=CasU_Controller(self)

    def start(self):
        Choix=-1
        self.DD_ControllerObj=Controler()
        while Choix!=100:
            #Choix=self.DD_ControllerObj.nextPageVar
             Choix=self.DD_ControllerObj.exitDialog
             Choix=self.CasU_ControllerObj.start()
             Choix=self.DD_ControllerObj.nextPageVar
        print("what",Choix)