Fix pylint errors
This commit is contained in:
parent
bc5e754172
commit
03917eda66
|
@ -66,12 +66,12 @@ class SettingsDialog(Gtk.ApplicationWindow):
|
||||||
self.listbox.connect('row-activated', self.on_row_activated)
|
self.listbox.connect('row-activated', self.on_row_activated)
|
||||||
self.connect('key-press-event', self.on_key_press)
|
self.connect('key-press-event', self.on_key_press)
|
||||||
|
|
||||||
def on_key_press(self, widget, event):
|
def on_key_press(self, _widget, event):
|
||||||
if event.keyval == Gdk.KEY_Escape:
|
if event.keyval == Gdk.KEY_Escape:
|
||||||
self.destroy()
|
self.destroy()
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def on_row_activated(listbox, row):
|
def on_row_activated(_listbox, row):
|
||||||
row.on_row_activated()
|
row.on_row_activated()
|
||||||
|
|
||||||
def get_setting(self, name):
|
def get_setting(self, name):
|
||||||
|
@ -209,7 +209,7 @@ class GenericSetting(Gtk.ListBoxRow):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def __get_value(type_, value, account):
|
def __get_value(type_, value, account):
|
||||||
if value is None:
|
if value is None:
|
||||||
return
|
return None
|
||||||
if type_ == SettingType.VALUE:
|
if type_ == SettingType.VALUE:
|
||||||
return value
|
return value
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue