Fixed unusued arguments
Places where the variable is used in a overriding method were marked for pylint to ignore them.
This commit is contained in:
parent
04aa844a9d
commit
b9e4f99fec
@ -38,7 +38,7 @@ class AppListWidgetItem(PyQt4.QtGui.QListWidgetItem):
|
||||
|
||||
|
||||
class AppmenuSelectManager:
|
||||
def __init__(self, vm, apps_multiselect, parent=None):
|
||||
def __init__(self, vm, apps_multiselect):
|
||||
self.vm = vm
|
||||
self.app_list = apps_multiselect # this is a multiselect wiget
|
||||
self.whitelisted = None
|
||||
|
@ -409,14 +409,14 @@ class QubesFirewallRulesModel(QtCore.QAbstractItemModel):
|
||||
|
||||
return self.createIndex(row, column, self.children[row])
|
||||
|
||||
def parent(self, child):
|
||||
def parent(self, child): # pylint: disable=unused-argument
|
||||
return QtCore.QModelIndex()
|
||||
|
||||
# pylint: disable=invalid-name
|
||||
# pylint: disable=invalid-name,unused-argument
|
||||
def rowCount(self, parent=QtCore.QModelIndex()):
|
||||
return len(self)
|
||||
|
||||
# pylint: disable=invalid-name
|
||||
# pylint: disable=invalid-name,unused-argument
|
||||
def columnCount(self, parent=QtCore.QModelIndex()):
|
||||
return len(self.__column_names)
|
||||
|
||||
|
@ -9,7 +9,7 @@ class MultiSelectWidget(
|
||||
__pyqtSignals__ = ("items_removed(PyQt_PyObject)",)
|
||||
|
||||
def __init__(self, parent=None):
|
||||
super(MultiSelectWidget, self).__init__()
|
||||
super(MultiSelectWidget, self).__init__(parent)
|
||||
self.setupUi(self)
|
||||
self.add_selected_button.clicked.connect(self.add_selected)
|
||||
self.add_all_button.clicked.connect(self.add_all)
|
||||
|
@ -874,7 +874,7 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtGui.QDialog):
|
||||
def set_allow(self, allow):
|
||||
self.policy_allow_radio_button.setChecked(allow)
|
||||
self.policy_deny_radio_button.setChecked(not allow)
|
||||
self.policy_changed(allow)
|
||||
self.policy_changed()
|
||||
|
||||
def policy_changed(self):
|
||||
self.rulesTreeView.setEnabled(
|
||||
|
Loading…
Reference in New Issue
Block a user