Plugins/AboutPlugin/AboutDialog.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2302
f29e9405c851
child 2677
3d4277929fb3
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing an 'About Eric' dialog. 7 Module implementing an 'About Eric' dialog.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
9 11
10 from PyQt4.QtGui import QApplication, QDialog 12 from PyQt4.QtGui import QApplication, QDialog
11 13
12 from .Ui_AboutDialog import Ui_AboutDialog 14 from .Ui_AboutDialog import Ui_AboutDialog
13 15
733 """ 735 """
734 Constructor 736 Constructor
735 737
736 @param parent reference to the parent widget (QWidget) 738 @param parent reference to the parent widget (QWidget)
737 """ 739 """
738 super().__init__(parent) 740 super(AboutDialog, self).__init__(parent)
739 self.setupUi(self) 741 self.setupUi(self)
740 742
741 self.ericLabel.setText(titleText) 743 self.ericLabel.setText(titleText)
742 self.ericPixmap.setPixmap(UI.PixmapCache.getPixmap("eric.png").scaled(48, 48)) 744 self.ericPixmap.setPixmap(UI.PixmapCache.getPixmap("eric.png").scaled(48, 48))
743 745

eric ide

mercurial