Graphics/UMLDialog.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2401
4f428de32b69
child 3057
10516539f238
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing a dialog showing UML like diagrams. 7 Module implementing a dialog showing UML like diagrams.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
9 11
10 from PyQt4.QtCore import Qt, QFileInfo 12 from PyQt4.QtCore import Qt, QFileInfo
11 from PyQt4.QtGui import QAction, QToolBar, QGraphicsScene 13 from PyQt4.QtGui import QAction, QToolBar, QGraphicsScene
12 14
13 from E5Gui import E5MessageBox, E5FileDialog 15 from E5Gui import E5MessageBox, E5FileDialog
40 @param path file or directory path to build the diagram from (string) 42 @param path file or directory path to build the diagram from (string)
41 @param parent parent widget of the dialog (QWidget) 43 @param parent parent widget of the dialog (QWidget)
42 @keyparam initBuilder flag indicating to initialize the diagram builder (boolean) 44 @keyparam initBuilder flag indicating to initialize the diagram builder (boolean)
43 @param kwargs diagram specific data 45 @param kwargs diagram specific data
44 """ 46 """
45 super().__init__(parent) 47 super(UMLDialog, self).__init__(parent)
46 self.setObjectName("UMLDialog") 48 self.setObjectName("UMLDialog")
47 49
48 self.__diagramType = diagramType 50 self.__diagramType = diagramType
49 self.__project = project 51 self.__project = project
50 52
137 @keyparam fromFile flag indicating, that the diagram was loaded 139 @keyparam fromFile flag indicating, that the diagram was loaded
138 from file (boolean) 140 from file (boolean)
139 """ 141 """
140 if not fromFile and self.builder: 142 if not fromFile and self.builder:
141 self.builder.buildDiagram() 143 self.builder.buildDiagram()
142 super().show() 144 super(UMLDialog, self).show()
143 145
144 def __relayout(self): 146 def __relayout(self):
145 """ 147 """
146 Private method to relayout the diagram. 148 Private method to relayout the diagram.
147 """ 149 """

eric ide

mercurial