(self)
return set(loaded)
Get list of every loaded program.
Get list of every loaded program.
Get list of every loaded program .
def all_loaded_apps(self):
        """Get list of every loaded program."""
        loaded = []
        
        #Get dict of running processes here if focus is enabled
        if WindowFocus is not None:
            self.processes = get_running_processes()
        
        matching_applications = {self.processes[app]: app
                                 for app in self.applist
                                 if app in self.processes}
        
        for index in sorted(matching_applications.keys())[::-1]:
            loaded_exe = matching_applications[index]
            names = self.applist[loaded_exe]
            try:
                loaded.append(names[None])

            #Only fallback to window name if it is the only entry for that application
            except KeyError:
                if len(names) == 1 or len(set(names.values())) == 1:
                    loaded.append(names[names.keys()[0]])
        return set(loaded)
def all_loaded_apps ( self ) : loaded = [ ] #Get dict of running processes here if focus is enabled if WindowFocus is not None : self . processes = get_running_processes ( ) matching_applications = { self . processes [ app ] : app for app in self . applist if app in self . processes } for index in sorted ( matching_applications . keys ( ) ) [ : : - 1 ] : loaded_exe = matching_applications [ index ] names = self . applist [ loaded_exe ] try : loaded . append ( names [ None ] ) #Only fallback to window name if it is the only entry for that application except KeyError : if len ( names ) == 1 or len ( set ( names . values ( ) ) ) == 1 : loaded . append ( names [ names . keys ( ) [ 0 ] ] ) return set ( loaded )