eric7/Debugger/VariableDetailDialog.py

branch
eric7
changeset 8312
800c432b34c8
parent 8218
7c09585bd960
child 8318
962bce857696
equal deleted inserted replaced
8311:4e8b98454baa 8312:800c432b34c8
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) 2003 - 2021 Detlev Offenbach <detlev@die-offenbachs.de>
4 #
5
6 """
7 Module implementing the variable detail dialog.
8 """
9
10 from PyQt5.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