src/eric7/PluginManager/PluginDetailsDialog.py

branch
eric7
changeset 9209
b99e7fd55fd3
parent 8881
54e42bc2437a
child 9221
bf71ee032bb4
equal deleted inserted replaced
9208:3fc8dfeb6ebe 9209:b99e7fd55fd3
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) 2007 - 2022 Detlev Offenbach <detlev@die-offenbachs.de>
4 #
5
6 """
7 Module implementing the Plugin Details Dialog.
8 """
9
10 from PyQt6.QtCore import pyqtSlot, Qt
11 from PyQt6.QtWidgets import QDialog
12
13 from .Ui_PluginDetailsDialog import Ui_PluginDetailsDialog
14
15
16 class PluginDetailsDialog(QDialog, Ui_PluginDetailsDialog):
17 """
18 Class implementing the Plugin Details Dialog.
19 """
20 def __init__(self, details, parent=None):
21 """
22 Constructor
23
24 @param details dictionary containing the info to be displayed
25 @param parent parent of this dialog (QWidget)
26 """
27 super().__init__(parent)
28 self.setupUi(self)
29 self.setWindowFlags(Qt.WindowType.Window)
30
31 self.__autoactivate = details["autoactivate"]
32 self.__active = details["active"]
33
34 self.moduleNameEdit.setText(details["moduleName"])
35 self.moduleFileNameEdit.setText(details["moduleFileName"])
36 self.pluginNameEdit.setText(details["pluginName"])
37 self.versionEdit.setText(details["version"])
38 self.authorEdit.setText(details["author"])
39 self.descriptionEdit.setText(details["description"])
40 self.errorEdit.setText(details["error"])
41 self.autoactivateCheckBox.setChecked(details["autoactivate"])
42 self.activeCheckBox.setChecked(details["active"])
43
44 @pyqtSlot()
45 def on_activeCheckBox_clicked(self):
46 """
47 Private slot called, when the activeCheckBox was clicked.
48 """
49 self.activeCheckBox.setChecked(self.__active)
50
51 @pyqtSlot()
52 def on_autoactivateCheckBox_clicked(self):
53 """
54 Private slot called, when the autoactivateCheckBox was clicked.
55 """
56 self.autoactivateCheckBox.setChecked(self.__autoactivate)

eric ide

mercurial