102 """ |
102 """ |
103 Private method to build the modules shapes of the diagram. |
103 Private method to build the modules shapes of the diagram. |
104 """ |
104 """ |
105 initlist = glob.glob(os.path.join(self.packagePath, '__init__.*')) |
105 initlist = glob.glob(os.path.join(self.packagePath, '__init__.*')) |
106 if len(initlist) == 0: |
106 if len(initlist) == 0: |
107 ct = QGraphicsTextItem(None, self.scene) |
107 ct = QGraphicsTextItem(None) |
108 ct.setHtml( |
108 ct.setHtml( |
109 self.trUtf8("The directory <b>'{0}'</b> is not a Python package.")\ |
109 self.trUtf8("The directory <b>'{0}'</b> is not a Python package.")\ |
110 .format(self.package)) |
110 .format(self.package)) |
|
111 self.scene.addItem(ct) |
111 return |
112 return |
112 |
113 |
113 shapes = {} |
114 shapes = {} |
114 p = 10 |
115 p = 10 |
115 y = 10 |
116 y = 10 |