From 42f2f7ee59a6c7d041a036323c5e1d7ba73a8a84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Wed, 16 Jul 2014 07:57:34 +0200 Subject: [PATCH] Rename some variables (fix pylint warnings) --- qweechat/connection.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/qweechat/connection.py b/qweechat/connection.py index 24a5ab1..f63b2bb 100644 --- a/qweechat/connection.py +++ b/qweechat/connection.py @@ -36,23 +36,23 @@ class ConnectionDialog(QtGui.QDialog): grid.setSpacing(10) self.fields = {} - for y, field in enumerate(('server', 'port', 'password', 'lines')): - grid.addWidget(QtGui.QLabel(field.capitalize()), y, 0) - lineEdit = QtGui.QLineEdit() - lineEdit.setFixedWidth(200) + for line, field in enumerate(('server', 'port', 'password', 'lines')): + grid.addWidget(QtGui.QLabel(field.capitalize()), line, 0) + line_edit = QtGui.QLineEdit() + line_edit.setFixedWidth(200) if field == 'password': - lineEdit.setEchoMode(QtGui.QLineEdit.Password) + line_edit.setEchoMode(QtGui.QLineEdit.Password) if field == 'lines': validator = QtGui.QIntValidator(0, 2147483647, self) - lineEdit.setValidator(validator) - lineEdit.setFixedWidth(80) - lineEdit.insert(self.values[field]) - grid.addWidget(lineEdit, y, 1) - self.fields[field] = lineEdit + line_edit.setValidator(validator) + line_edit.setFixedWidth(80) + line_edit.insert(self.values[field]) + grid.addWidget(line_edit, line, 1) + self.fields[field] = line_edit if field == 'port': ssl = QtGui.QCheckBox('SSL') ssl.setChecked(self.values['ssl'] == 'on') - grid.addWidget(ssl, y, 2) + grid.addWidget(ssl, line, 2) self.fields['ssl'] = ssl self.dialog_buttons = QtGui.QDialogButtonBox()