Debugger/VariableDetailDialog.py

Sun, 30 Nov 2014 13:07:14 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 30 Nov 2014 13:07:14 +0100
branch
5_5_x
changeset 3952
6a7a407548d0
parent 3178
f25fc1364c88
child 3656
441956d8fce5
permissions
-rw-r--r--

Prepared release 5.5.1.

# -*- coding: utf-8 -*-

# Copyright (c) 2003 - 2014 Detlev Offenbach <detlev@die-offenbachs.de>
#

"""
Module implementing the variable detail dialog.
"""

from __future__ import unicode_literals

from PyQt4.QtGui import QDialog

from .Ui_VariableDetailDialog import Ui_VariableDetailDialog


class VariableDetailDialog(QDialog, Ui_VariableDetailDialog):
    """
    Class implementing the variable detail dialog.
    
    This dialog shows the name, the type and the value of a variable
    in a read only dialog. It is opened upon a double click in the
    variables viewer widget.
    """
    def __init__(self, var, vtype, value):
        """
        Constructor
        
        @param var the variables name (string)
        @param vtype the variables type (string)
        @param value the variables value (string)
        """
        super(VariableDetailDialog, self).__init__()
        self.setupUi(self)
        
        # set the different fields
        self.eName.setText(var)
        self.eType.setText(vtype)
        self.eValue.setPlainText(value)

eric ide

mercurial