Helpviewer/GreaseMonkey/GreaseMonkeyConfiguration/GreaseMonkeyConfigurationScriptInfoDialog.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2403
e3d7a861547c
child 3057
10516539f238
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing a dialog to show GreaseMonkey script information. 7 Module implementing a dialog to show GreaseMonkey script information.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
9 11
10 from PyQt4.QtCore import pyqtSlot 12 from PyQt4.QtCore import pyqtSlot
11 from PyQt4.QtGui import QDialog 13 from PyQt4.QtGui import QDialog
12 14
13 from .Ui_GreaseMonkeyConfigurationScriptInfoDialog import \ 15 from .Ui_GreaseMonkeyConfigurationScriptInfoDialog import \
28 Constructor 30 Constructor
29 31
30 @param script reference to the script (GreaseMonkeyScript) 32 @param script reference to the script (GreaseMonkeyScript)
31 @param parent reference to the parent widget (QWidget) 33 @param parent reference to the parent widget (QWidget)
32 """ 34 """
33 super().__init__(parent) 35 super(GreaseMonkeyConfigurationScriptInfoDialog, self).__init__(parent)
34 self.setupUi(self) 36 self.setupUi(self)
35 37
36 self.iconLabel.setPixmap(UI.PixmapCache.getPixmap("greaseMonkey48.png")) 38 self.iconLabel.setPixmap(UI.PixmapCache.getPixmap("greaseMonkey48.png"))
37 39
38 self.__scriptFileName = script.fileName() 40 self.__scriptFileName = script.fileName()

eric ide

mercurial