summaryrefslogtreecommitdiffstats
path: root/module/gui/AccountEdit.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2011-02-14 17:05:11 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2011-02-14 17:05:11 +0100
commitc50326a33f1a90b00325273af8710700bbac67d2 (patch)
tree2def1c5550bb9d62fd102e0d38c2bb010f2d7a33 /module/gui/AccountEdit.py
parentdefault thrift backend (diff)
downloadpyload-c50326a33f1a90b00325273af8710700bbac67d2.tar.xz
fixes, docstring update for gui
Diffstat (limited to 'module/gui/AccountEdit.py')
-rw-r--r--module/gui/AccountEdit.py13
1 files changed, 13 insertions, 0 deletions
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)