示例#1
0
 def _initialize_tkinter(self):
     """ Initialize a standalone tkinter instance. """
     logger.debug("Initializing tkinter")
     for widget in ("TButton", "TCheckbutton", "TRadiobutton"):
         self.unbind_class(widget, "<Key-space>")
     initialize_config(self, None, None)
     initialize_images()
     get_config().set_geometry(940, 600, fullscreen=True)
     self.title("Faceswap.py - Visual Alignments")
     logger.debug("Initialized tkinter")
示例#2
0
 def initialize_tkinter(self):
     """ Initialize tkinter for standalone or GUI """
     logger.debug("Initializing tkinter")
     pathscript = os.path.realpath(os.path.dirname(sys.argv[0]))
     pathcache = os.path.join(pathscript, "lib", "gui", ".cache")
     initialize_images(pathcache=pathcache)
     self.set_geometry()
     self.root.title("Faceswap.py - Convert Settings")
     self.root.tk.call("wm", "iconphoto", self.root._w,
                       get_images().icons["favicon"])  # pylint:disable=protected-access
     logger.debug("Initialized tkinter")