Helpviewer/Passwords/PasswordModel.py

changeset 945
8cd4d08fa9f6
parent 791
9ec2ac20e54e
child 1112
8a7d1b9d18db
--- a/Helpviewer/Passwords/PasswordModel.py	Fri Mar 11 08:55:14 2011 +0100
+++ b/Helpviewer/Passwords/PasswordModel.py	Fri Mar 11 16:51:57 2011 +0100
@@ -9,11 +9,12 @@
 
 from PyQt4.QtCore import *
 
+
 class PasswordModel(QAbstractTableModel):
     """
     Class implementing a model for password management.
     """
-    def __init__(self, manager, parent = None):
+    def __init__(self, manager, parent=None):
         """
         Constructor
         
@@ -26,8 +27,8 @@
         manager.changed.connect(self.__passwordsChanged)
         
         self.__headers = [
-            self.trUtf8("Website"), 
-            self.trUtf8("Username"), 
+            self.trUtf8("Website"),
+            self.trUtf8("Username"),
             self.trUtf8("Password")
         ]
         
@@ -56,7 +57,7 @@
         """
         self.reset()
     
-    def removeRows(self, row, count, parent = QModelIndex()):
+    def removeRows(self, row, count, parent=QModelIndex()):
         """
         Public method to remove entries from the model.
         
@@ -84,7 +85,7 @@
         
         return True
     
-    def rowCount(self, parent = QModelIndex()):
+    def rowCount(self, parent=QModelIndex()):
         """
         Public method to get the number of rows of the model.
         
@@ -96,7 +97,7 @@
         else:
             return self.__manager.sitesCount()
     
-    def columnCount(self, parent = QModelIndex()):
+    def columnCount(self, parent=QModelIndex()):
         """
         Public method to get the number of columns of the model.
         
@@ -133,7 +134,7 @@
         
         return None
     
-    def headerData(self, section, orientation, role = Qt.DisplayRole):
+    def headerData(self, section, orientation, role=Qt.DisplayRole):
         """
         Public method to get the header data.
         

eric ide

mercurial