Beispiel #1
0
 def initialize_globals(self):
     """ Initialize config and images global constants """
     cliopts = CliOptions()
     statusbar = StatusBar(self)
     config = initialize_config(self, cliopts, statusbar)
     initialize_images()
     return config
Beispiel #2
0
 def initialize_globals(self, pathscript):
     """ Initialize config and images global constants """
     cliopts = CliOptions()
     scaling_factor = self.get_scaling()
     pathcache = os.path.join(pathscript, "lib", "gui", ".cache")
     statusbar = StatusBar(self)
     session = Session()
     initialize_config(self, cliopts, scaling_factor, pathcache, statusbar, session)
     initialize_images()
Beispiel #3
0
    def __init__(self, pathscript):
        tk.Tk.__init__(self)
        self.geometry("1200x640+80+80")
        pathcache = os.path.join(pathscript, "lib", "gui", ".cache")
        self.images = Images(pathcache)
        self.cliopts = CliOptions()
        self.session = CurrentSession()
        self.wrapper = ProcessWrapper(self.session, pathscript, self.cliopts)

        StatusBar(self)
        self.images.delete_preview()
        self.protocol("WM_DELETE_WINDOW", self.close_app)
Beispiel #4
0
    def __init__(self, pathscript):
        tk.Tk.__init__(self)
        self.scaling_factor = self.get_scaling()
        self.set_geometry()

        pathcache = os.path.join(pathscript, "lib", "gui", ".cache")
        self.images = Images(pathcache)
        self.cliopts = CliOptions()
        self.session = CurrentSession()
        statusbar = StatusBar(self)
        self.wrapper = ProcessWrapper(statusbar, self.session, pathscript,
                                      self.cliopts)

        self.images.delete_preview()
        self.protocol("WM_DELETE_WINDOW", self.close_app)