예제 #1
0
 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()
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()
예제 #3
0
    def go(self):
        if config[2] == 'FrontEndKieran':
            from FrontEndKieran import TkinterInterface
            interface = TkinterInterface(self)
        elif config[2] == 'FrontEndJerry':
            from FrontEndJerry import GuiInterface
            interface = GuiInterface(self)

        interface.start()
예제 #4
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()
 def create_interface(self):
     self.interface = GuiInterface(self)
     self.interface.start()