E5Gui/E5MainWindow.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2302
f29e9405c851
child 3057
10516539f238
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing a main window class with styling support. 7 Module implementing a main window class with styling support.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
9 11
10 from PyQt4.QtGui import QMainWindow, QStyleFactory, QApplication 12 from PyQt4.QtGui import QMainWindow, QStyleFactory, QApplication
11 13
12 from .E5Application import e5App 14 from .E5Application import e5App
13 from . import E5MessageBox 15 from . import E5MessageBox
21 """ 23 """
22 Constructor 24 Constructor
23 25
24 @param parent reference to the parent widget (QWidget) 26 @param parent reference to the parent widget (QWidget)
25 """ 27 """
26 super().__init__(parent) 28 super(E5MainWindow, self).__init__(parent)
27 29
28 self.defaultStyleName = QApplication.style().objectName() 30 self.defaultStyleName = QApplication.style().objectName()
29 31
30 def setStyle(self, styleName, styleSheetFile): 32 def setStyle(self, styleName, styleSheetFile):
31 """ 33 """

eric ide

mercurial