31 @param parent reference to the parent widget (QWidget) |
31 @param parent reference to the parent widget (QWidget) |
32 """ |
32 """ |
33 super().__init__(parent) |
33 super().__init__(parent) |
34 self.setupUi(self) |
34 self.setupUi(self) |
35 |
35 |
36 self.iconLabel.setPixmap(UI.PixmapCache.getPixmap("greaseMonkey48.png")) |
36 self.iconLabel.setPixmap( |
|
37 UI.PixmapCache.getPixmap("greaseMonkey48.png")) |
37 |
38 |
38 self.__scriptFileName = script.fileName() |
39 self.__scriptFileName = script.fileName() |
39 |
40 |
40 self.setWindowTitle(self.trUtf8("Script Details of {0}").format(script.name())) |
41 self.setWindowTitle( |
|
42 self.trUtf8("Script Details of {0}").format(script.name())) |
41 |
43 |
42 self.nameLabel.setText(script.fullName()) |
44 self.nameLabel.setText(script.fullName()) |
43 self.versionLabel.setText(script.version()) |
45 self.versionLabel.setText(script.version()) |
44 self.urlLabel.setText(script.downloadUrl().toString()) |
46 self.urlLabel.setText(script.downloadUrl().toString()) |
45 if script.startAt() == GreaseMonkeyScript.DocumentStart: |
47 if script.startAt() == GreaseMonkeyScript.DocumentStart: |