15 |
15 |
16 from eric7 import Globals |
16 from eric7 import Globals |
17 from eric7.EricGui import EricPixmapCache |
17 from eric7.EricGui import EricPixmapCache |
18 from eric7.EricWidgets import EricMessageBox |
18 from eric7.EricWidgets import EricMessageBox |
19 from eric7.EricWidgets.EricPlainTextDialog import EricPlainTextDialog |
19 from eric7.EricWidgets.EricPlainTextDialog import EricPlainTextDialog |
|
20 from eric7.SystemUtilities import OSUtilities |
20 |
21 |
21 from .Ui_InstallInfoDialog import Ui_InstallInfoDialog |
22 from .Ui_InstallInfoDialog import Ui_InstallInfoDialog |
22 |
23 |
23 |
24 |
24 class InstallInfoDialog(QDialog, Ui_InstallInfoDialog): |
25 class InstallInfoDialog(QDialog, Ui_InstallInfoDialog): |
57 |
58 |
58 try: |
59 try: |
59 with open(infoFileName, "r") as infoFile: |
60 with open(infoFileName, "r") as infoFile: |
60 self.__info = json.load(infoFile) |
61 self.__info = json.load(infoFile) |
61 |
62 |
62 if Globals.isWindowsPlatform(): |
63 if OSUtilities.isWindowsPlatform(): |
63 self.sudoLabel1.setText(self.tr("Installed as Administrator:")) |
64 self.sudoLabel1.setText(self.tr("Installed as Administrator:")) |
64 else: |
65 else: |
65 self.sudoLabel1.setText(self.tr("Installed with sudo:")) |
66 self.sudoLabel1.setText(self.tr("Installed with sudo:")) |
66 self.sudoLabel2.setText( |
67 self.sudoLabel2.setText( |
67 self.tr("Yes") if self.__info["sudo"] else self.tr("No") |
68 self.tr("Yes") if self.__info["sudo"] else self.tr("No") |