def run(self,edit,toggle): print toggle #config = configig(self.view) #config.run(edit) self.edit = edit if (toggle == "on"): Controller.turnOn(self.view,edit,self) else: print self.ctrl Controller.turnOff()