9 |
9 |
10 from PyQt6.QtWidgets import QDialog |
10 from PyQt6.QtWidgets import QDialog |
11 |
11 |
12 from .Ui_PersonalDataDialog import Ui_PersonalDataDialog |
12 from .Ui_PersonalDataDialog import Ui_PersonalDataDialog |
13 |
13 |
14 import UI.PixmapCache |
14 from eric7.EricGui import EricPixmapCache |
15 import Preferences |
15 from eric7 import Preferences |
16 |
16 |
17 |
17 |
18 class PersonalDataDialog(QDialog, Ui_PersonalDataDialog): |
18 class PersonalDataDialog(QDialog, Ui_PersonalDataDialog): |
19 """ |
19 """ |
20 Class implementing a dialog to enter personal data. |
20 Class implementing a dialog to enter personal data. |
27 @param parent reference to the parent widget (QWidget) |
27 @param parent reference to the parent widget (QWidget) |
28 """ |
28 """ |
29 super().__init__(parent) |
29 super().__init__(parent) |
30 self.setupUi(self) |
30 self.setupUi(self) |
31 |
31 |
32 self.iconLabel.setPixmap(UI.PixmapCache.getPixmap("pim48")) |
32 self.iconLabel.setPixmap(EricPixmapCache.getPixmap("pim48")) |
33 |
33 |
34 self.firstnameEdit.setText(Preferences.getWebBrowser("PimFirstName")) |
34 self.firstnameEdit.setText(Preferences.getWebBrowser("PimFirstName")) |
35 self.lastnameEdit.setText(Preferences.getWebBrowser("PimLastName")) |
35 self.lastnameEdit.setText(Preferences.getWebBrowser("PimLastName")) |
36 self.fullnameEdit.setText(Preferences.getWebBrowser("PimFullName")) |
36 self.fullnameEdit.setText(Preferences.getWebBrowser("PimFullName")) |
37 self.emailEdit.setText(Preferences.getWebBrowser("PimEmail")) |
37 self.emailEdit.setText(Preferences.getWebBrowser("PimEmail")) |