From c50326a33f1a90b00325273af8710700bbac67d2 Mon Sep 17 00:00:00 2001 From: mkaay Date: Mon, 14 Feb 2011 17:05:11 +0100 Subject: fixes, docstring update for gui --- module/gui/AccountEdit.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'module/gui/AccountEdit.py') diff --git a/module/gui/AccountEdit.py b/module/gui/AccountEdit.py index cc213b0d5..b22cfc49f 100644 --- a/module/gui/AccountEdit.py +++ b/module/gui/AccountEdit.py @@ -22,6 +22,10 @@ from PyQt4.QtGui import * from os.path import join class AccountEdit(QWidget): + """ + account editor widget + """ + def __init__(self): QMainWindow.__init__(self) @@ -62,6 +66,9 @@ class AccountEdit(QWidget): self.connect(save, SIGNAL("clicked()"), self.slotSave) def slotSave(self): + """ + save entered data + """ data = {"login": str(self.login.text()), "acctype": str(self.acctype.currentText()), "password": False} if self.changePw.isChecked(): data["password"] = str(self.password.text()) @@ -69,6 +76,9 @@ class AccountEdit(QWidget): @staticmethod def newAccount(types): + """ + create empty editor instance + """ w = AccountEdit() w.setWindowTitle(_("Create account")) @@ -81,6 +91,9 @@ class AccountEdit(QWidget): @staticmethod def editAccount(types, base): + """ + create editor instance with given data + """ w = AccountEdit() w.acctype.addItems(types) -- cgit v1.2.3