src/eric7/Debugger/VariableDetailDialog.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) 2003 - 2022 Detlev Offenbach <detlev@die-offenbachs.de>
4 #
5
6 """
7 Module implementing the variable detail dialog.
8 """
9
10 from PyQt6.QtWidgets import QDialog
11
12 from .Ui_VariableDetailDialog import Ui_VariableDetailDialog
13
14
15 class VariableDetailDialog(QDialog, Ui_VariableDetailDialog):
16 """
17 Class implementing the variable detail dialog.
18
19 This dialog shows the name, the type and the value of a variable
20 in a read only dialog. It is opened upon a double click in the
21 variables viewer widget.
22 """
23 def __init__(self, var, vtype, value):
24 """
25 Constructor
26
27 @param var the variables name (string)
28 @param vtype the variables type (string)
29 @param value the variables value (string)
30 """
31 super().__init__()
32 self.setupUi(self)
33
34 # set the different fields
35 self.eName.setText(var)
36 self.eType.setText(vtype)
37 self.eValue.setPlainText(value)

eric ide

mercurial