Debugger/VariableDetailDialog.py

changeset 0
de9c2efb9d02
child 12
1d8dd9706f46
equal deleted inserted replaced
-1:000000000000 0:de9c2efb9d02
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) 2003 - 2009 Detlev Offenbach <detlev@die-offenbachs.de>
4 #
5
6 """
7 Module implementing the variable detail dialog.
8 """
9
10 from PyQt4.QtCore import *
11 from PyQt4.QtGui import *
12
13 from Ui_VariableDetailDialog import Ui_VariableDetailDialog
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 QDialog.__init__(self)
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