Beispiel #1
0
    def build_gui(self, rebuild=False):
        """ Build the GUI """
        logger.debug("Building GUI")
        if not rebuild:
            self.tk.call('wm', 'iconphoto', self._w,
                         get_images().icons["favicon"])
            self.configure(menu=MainMenuBar(self))

        if rebuild:
            objects = list(self.objects.keys())
            for obj in objects:
                self.objects[obj].destroy()
                del self.objects[obj]

        self.objects["taskbar"] = TaskBar(self)
        self.add_containers()

        self.objects["command"] = CommandNotebook(
            self.objects["container_top"])
        self.objects["display"] = DisplayNotebook(
            self.objects["container_top"])
        self.objects["console"] = ConsoleOut(self.objects["container_bottom"],
                                             self._init_args["debug"])
        self.set_initial_focus()
        self.set_layout()
        self._config.set_default_options()
        logger.debug("Built GUI")
Beispiel #2
0
    def build_gui(self, debug_console):
        """ Build the GUI """
        self.title("Faceswap.py")
        self.menu()

        topcontainer, bottomcontainer = self.add_containers()

        CommandNotebook(topcontainer, self.cliopts, self.wrapper.tk_vars,
                        self.scaling_factor)
        DisplayNotebook(topcontainer, self.session, self.wrapper.tk_vars,
                        self.scaling_factor)
        ConsoleOut(bottomcontainer, debug_console, self.wrapper.tk_vars)
Beispiel #3
0
    def build_gui(self, debug_console):
        """ Build the GUI """
        logger.debug("Building GUI")
        self.title("Faceswap.py")
        self.tk.call('wm', 'iconphoto', self._w, get_images().icons["favicon"])
        self.configure(menu=MainMenuBar(self))

        topcontainer, bottomcontainer = self.add_containers()

        CommandNotebook(topcontainer)
        DisplayNotebook(topcontainer)
        ConsoleOut(bottomcontainer, debug_console)
        logger.debug("Built GUI")
Beispiel #4
0
    def build_gui(self, debug_console):
        """ Build the GUI """
        logger.debug("Building GUI")
        self.title("Faceswap.py")
        self.tk.call('wm', 'iconphoto', self._w, get_images().icons["favicon"])
        self.configure(menu=MainMenuBar(self))

        self.add_containers()

        self.objects["command"] = CommandNotebook(
            self.objects["containers"]["top"])
        self.objects["display"] = DisplayNotebook(
            self.objects["containers"]["top"])
        self.objects["console"] = ConsoleOut(
            self.objects["containers"]["bottom"], debug_console)
        self.set_initial_focus()
        self.set_layout()
        logger.debug("Built GUI")