11 import os |
11 import os |
12 |
12 |
13 from PyQt6.QtCore import pyqtSlot |
13 from PyQt6.QtCore import pyqtSlot |
14 from PyQt6.QtWidgets import QDialog, QDialogButtonBox |
14 from PyQt6.QtWidgets import QDialog, QDialogButtonBox |
15 |
15 |
16 from EricWidgets import EricMessageBox |
16 from eric7.EricWidgets import EricMessageBox |
17 |
17 |
18 from .Ui_InstallInfoDialog import Ui_InstallInfoDialog |
18 from .Ui_InstallInfoDialog import Ui_InstallInfoDialog |
19 |
19 |
20 import Globals |
20 from eric7 import Globals |
21 import UI.PixmapCache |
21 from eric7.EricGui import EricPixmapCache |
22 |
22 |
23 |
23 |
24 class InstallInfoDialog(QDialog, Ui_InstallInfoDialog): |
24 class InstallInfoDialog(QDialog, Ui_InstallInfoDialog): |
25 """ |
25 """ |
26 Class implementing a dialog to show information about the installation. |
26 Class implementing a dialog to show information about the installation. |
46 self.__updateButton.clicked.connect(self.on_updateButton_clicked) |
46 self.__updateButton.clicked.connect(self.on_updateButton_clicked) |
47 |
47 |
48 self.__edited = False |
48 self.__edited = False |
49 self.__loaded = True |
49 self.__loaded = True |
50 |
50 |
51 self.editButton.setIcon(UI.PixmapCache.getIcon("infoEdit")) |
51 self.editButton.setIcon(EricPixmapCache.getIcon("infoEdit")) |
52 self.saveButton.setIcon(UI.PixmapCache.getIcon("fileSave")) |
52 self.saveButton.setIcon(EricPixmapCache.getIcon("fileSave")) |
53 |
53 |
54 infoFileName = Globals.getInstallInfoFilePath() |
54 infoFileName = Globals.getInstallInfoFilePath() |
55 |
55 |
56 self.__deleteButton.setEnabled(os.path.exists(infoFileName)) |
56 self.__deleteButton.setEnabled(os.path.exists(infoFileName)) |
57 |
57 |