Graphics/ClassItem.py

changeset 945
8cd4d08fa9f6
parent 791
9ec2ac20e54e
child 1112
8a7d1b9d18db
--- a/Graphics/ClassItem.py	Fri Mar 11 08:55:14 2011 +0100
+++ b/Graphics/ClassItem.py	Fri Mar 11 16:51:57 2011 +0100
@@ -12,11 +12,12 @@
 
 from .UMLItem import UMLItem
 
+
 class ClassModel(object):
     """
     Class implementing the class model.
     """
-    def __init__(self, name, methods = [], attributes = []):
+    def __init__(self, name, methods=[], attributes=[]):
         """
         Constructor
         
@@ -70,12 +71,13 @@
         """
         return self.name
     
+
 class ClassItem(UMLItem):
     """
     Class implementing an UML like class item.
     """
-    def __init__(self, model = None, external = False, x = 0, y = 0, 
-                 rounded = False, noAttrs = False, parent = None, scene = None):
+    def __init__(self, model=None, external=False, x=0, y=0,
+                 rounded=False, noAttrs=False, parent=None, scene=None):
         """
         Constructor
         
@@ -175,7 +177,7 @@
         self.__createTexts()
         self.__calculateSize()
         
-    def paint(self, painter, option, widget = None):
+    def paint(self, painter, option, widget=None):
         """
         Public method to paint the item in local coordinates.
         

eric ide

mercurial