13 |
13 |
14 |
14 |
15 class VariableDetailDialog(QDialog, Ui_VariableDetailDialog): |
15 class VariableDetailDialog(QDialog, Ui_VariableDetailDialog): |
16 """ |
16 """ |
17 Class implementing the variable detail dialog. |
17 Class implementing the variable detail dialog. |
18 |
18 |
19 This dialog shows the name, the type and the value of a variable |
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 |
20 in a read only dialog. It is opened upon a double click in the |
21 variables viewer widget. |
21 variables viewer widget. |
22 """ |
22 """ |
|
23 |
23 def __init__(self, var, vtype, value): |
24 def __init__(self, var, vtype, value): |
24 """ |
25 """ |
25 Constructor |
26 Constructor |
26 |
27 |
27 @param var the variables name (string) |
28 @param var the variables name (string) |
28 @param vtype the variables type (string) |
29 @param vtype the variables type (string) |
29 @param value the variables value (string) |
30 @param value the variables value (string) |
30 """ |
31 """ |
31 super().__init__() |
32 super().__init__() |
32 self.setupUi(self) |
33 self.setupUi(self) |
33 |
34 |
34 # set the different fields |
35 # set the different fields |
35 self.eName.setText(var) |
36 self.eName.setText(var) |
36 self.eType.setText(vtype) |
37 self.eType.setText(vtype) |
37 self.eValue.setPlainText(value) |
38 self.eValue.setPlainText(value) |