(self)
Get list of currently running programs and focused window.
Get list of currently running programs and focused window.
Get list of currently running programs and focused window .
def refresh(self):
        """Get list of currently running programs and focused window."""
        if WindowFocus is None:
            self.focus = None
            self.processes = get_running_processes()
        else:
            self.focus = WindowFocus()
            self.focused_exe = self.focus.exe
            self.focused_name = self.focus.name
def refresh ( self ) : if WindowFocus is None : self . focus = None self . processes = get_running_processes ( ) else : self . focus = WindowFocus ( ) self . focused_exe = self . focus . exe self . focused_name = self . focus . name