(self)
Look up the system focus setting
Look up the system focus setting
Look up the system focus setting
def get_system_focus(self):
        """Look up the system focus setting"""
        if self.system_focus is not None:
            return(self.system_focus)
        elif 'org.gnome.desktop.interface' not in Gio.Settings.list_schemas():
            return
        else:
            gsettings=Gio.Settings.new('org.gnome.desktop.wm.preferences')
            value = gsettings.get_value('focus-mode')
            if value:
                self.system_focus = value.get_string()
            return(self.system_focus)
def get_system_focus ( self ) : if self . system_focus is not None : return ( self . system_focus ) elif 'org.gnome.desktop.interface' not in Gio . Settings . list_schemas ( ) : return else : gsettings = Gio . Settings . new ( 'org.gnome.desktop.wm.preferences' ) value = gsettings . get_value ( 'focus-mode' ) if value : self . system_focus = value . get_string ( ) return ( self . system_focus )