eric6/Debugger/VariableDetailDialog.py

changeset 6942
2602857055c5
parent 6645
ad476851d7e0
child 7229
53054eb5b15a
equal deleted inserted replaced
6941:f99d60d6b59b 6942:2602857055c5
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) 2003 - 2019 Detlev Offenbach <detlev@die-offenbachs.de>
4 #
5
6 """
7 Module implementing the variable detail dialog.
8 """
9
10 from __future__ import unicode_literals
11
12 from PyQt5.QtWidgets import QDialog
13
14 from .Ui_VariableDetailDialog import Ui_VariableDetailDialog
15
16
17 class VariableDetailDialog(QDialog, Ui_VariableDetailDialog):
18 """
19 Class implementing the variable detail dialog.
20
21 This dialog shows the name, the type and the value of a variable
22 in a read only dialog. It is opened upon a double click in the
23 variables viewer widget.
24 """
25 def __init__(self, var, vtype, value):
26 """
27 Constructor
28
29 @param var the variables name (string)
30 @param vtype the variables type (string)
31 @param value the variables value (string)
32 """
33 super(VariableDetailDialog, self).__init__()
34 self.setupUi(self)
35
36 # set the different fields
37 self.eName.setText(var)
38 self.eType.setText(vtype)
39 self.eValue.setPlainText(value)

eric ide

mercurial