diff options
| author | 2014-03-28 22:32:14 +0100 | |
|---|---|---|
| committer | 2014-06-28 02:47:08 +0200 | |
| commit | b1fffc3a1b2dbbb807213b85f538e59251b9bf35 (patch) | |
| tree | c373d3234dcb474bb424371a3d89341bed8a9e07 /module/gui/AccountEdit.py | |
| parent | Plugins licensing doc (diff) | |
| download | pyload-b1fffc3a1b2dbbb807213b85f538e59251b9bf35.tar.xz | |
Remove bad whitespaces
Merged vuolter/pyload@00288e6
Diffstat (limited to 'module/gui/AccountEdit.py')
| -rw-r--r-- | module/gui/AccountEdit.py | 34 | 
1 files changed, 17 insertions, 17 deletions
| diff --git a/module/gui/AccountEdit.py b/module/gui/AccountEdit.py index b22cfc49f..07a4cdad6 100644 --- a/module/gui/AccountEdit.py +++ b/module/gui/AccountEdit.py @@ -12,7 +12,7 @@      You should have received a copy of the GNU General Public License      along with this program; if not, see <http://www.gnu.org/licenses/>. -     +      @author: mkaay  """ @@ -25,16 +25,16 @@ class AccountEdit(QWidget):      """          account editor widget      """ -     +      def __init__(self):          QMainWindow.__init__(self)          self.setWindowTitle(_("Edit account"))          self.setWindowIcon(QIcon(join(pypath, "icons","logo.png"))) -         +          self.setLayout(QGridLayout())          l = self.layout() -         +          typeLabel = QLabel(_("Type"))          loginLabel = QLabel(_("Login"))          passwordLabel = QLabel(_("New password")) @@ -49,11 +49,11 @@ class AccountEdit(QWidget):          self.login = login          acctype = QComboBox()          self.acctype = acctype -         +          save = QPushButton(_("Save")) -         +          self.connect(changePw, SIGNAL("toggled(bool)"), password, SLOT("setEnabled(bool)")) -         +          l.addWidget(save, 3, 0, 1, 3)          l.addWidget(acctype, 0, 1, 1, 2)          l.addWidget(login, 1, 1, 1, 2) @@ -62,9 +62,9 @@ class AccountEdit(QWidget):          l.addWidget(passwordLabel, 2, 0)          l.addWidget(loginLabel, 1, 0)          l.addWidget(typeLabel, 0, 0) -         +          self.connect(save, SIGNAL("clicked()"), self.slotSave) -     +      def slotSave(self):          """              save entered data @@ -73,7 +73,7 @@ class AccountEdit(QWidget):          if self.changePw.isChecked():              data["password"] = str(self.password.text())          self.emit(SIGNAL("done"), data) -     +      @staticmethod      def newAccount(types):          """ @@ -81,24 +81,24 @@ class AccountEdit(QWidget):          """          w = AccountEdit()          w.setWindowTitle(_("Create account")) -         +          w.changePw.setChecked(True)          w.password.setEnabled(True) -         +          w.acctype.addItems(types) -         +          return w -     +      @staticmethod      def editAccount(types, base):          """              create editor instance with given data          """          w = AccountEdit() -         +          w.acctype.addItems(types)          w.acctype.setCurrentIndex(types.index(base["type"])) -         +          w.login.setText(base["login"]) -         +          return w | 
