class Interface(AbstractInterface):
    def __init__(self, parser):
        super().__init__(parser)

    def create_interface(self):
        self.interface = GuiInterface(self)
        self.interface.start()

    def go(self):
        self.create_interface()
예제 #2
0
class MainTIGr(AbstractInterface):
    def __init__(self, parser):
        super().__init__(parser)

    def create_interface(self):
        c = self.open_config()
        if c[2] == 'FrontEndKieran':
            from FrontEndKieran import TkinterInterface
            self.interface = TkinterInterface(self)
        elif c[2] == 'FrontEndJerry':
            from FrontEndJerry import GuiInterface
            self.interface = GuiInterface(self)
        self.interface.start()

    def open_config(self):
        self.config = open('config.txt', "r+")
        return self.config.read().splitlines()

    def go(self):
        self.create_interface()