Graphics/ImportsDiagramBuilder.py

changeset 2094
88620e11c67c
parent 2034
8de0fc1f7fef
child 2302
f29e9405c851
equal deleted inserted replaced
2089:d23ab571d2b9 2094:88620e11c67c
110 """ 110 """
111 Public method to build the modules shapes of the diagram. 111 Public method to build the modules shapes of the diagram.
112 """ 112 """
113 initlist = glob.glob(os.path.join(self.packagePath, '__init__.*')) 113 initlist = glob.glob(os.path.join(self.packagePath, '__init__.*'))
114 if len(initlist) == 0: 114 if len(initlist) == 0:
115 ct = QGraphicsTextItem(None, self.scene) 115 ct = QGraphicsTextItem(None)
116 ct.setHtml( 116 ct.setHtml(
117 self.trUtf8("The directory <b>'{0}'</b> is not a Python package.")\ 117 self.trUtf8("The directory <b>'{0}'</b> is not a Python package.")\
118 .format(self.package)) 118 .format(self.package))
119 self.scene.addItem(ct)
119 return 120 return
120 121
121 shapes = {} 122 shapes = {}
122 p = 10 123 p = 10
123 y = 10 124 y = 10

eric ide

mercurial