Graphics/ImportsDiagram.py

branch
5_2_x
changeset 2093
060d051757a2
parent 1847
ed220d11ee1e
child 2303
0ed4ed026c16
equal deleted inserted replaced
2092:987aa24ec704 2093:060d051757a2
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

eric ide

mercurial