Skip to content
Snippets Groups Projects
Commit cfcb711e authored by Nico's avatar Nico
Browse files

Make lint happy

parent 8b0d5907
No related branches found
No related tags found
No related merge requests found
......@@ -8,4 +8,5 @@ disable=attribute-defined-outside-init,
duplicate-code,
fixme,
missing-docstring,
no-name-in-module,
wrong-import-position
......@@ -11,7 +11,8 @@ class Actions:
def __init__(self, widget):
self.widget = widget
def _create_action(self, key, parameter, callback):
@staticmethod
def _create_action(key, parameter, callback):
action = Gio.SimpleAction.new(key, parameter)
action.connect("activate", callback)
return action
......
......@@ -23,4 +23,4 @@ class LoginActions(Actions):
# pylint: disable=unused-argument
def _login(self, action, parameter):
self.widget._on_login_pressed()
self.widget.on_login_pressed()
......@@ -37,7 +37,9 @@ class LoginContainer(Container):
def _setup_login_flow_headers(self):
login_flow_headers = self.builder.get_object(self.HEADERS_NAME)
login_flow_headers.show_all()
login_flow_headers.insert_action_group("login", self.get_action_group("login"))
login_flow_headers.insert_action_group(
"login", self.get_action_group("login")
)
self._window.set_titlebar(login_flow_headers)
def _setup_enter_listener(self):
......@@ -46,10 +48,9 @@ class LoginContainer(Container):
# pylint: disable=unused-argument
def _on_password_enter(self, widget):
self._on_login_pressed()
self.on_login_pressed()
# pylint: disable=unused-argument
def _on_login_pressed(self):
def on_login_pressed(self):
self._show_loading_animation()
self._login()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment