From 5cde027f02158fc183f14ca7d5f75390e2a71154 Mon Sep 17 00:00:00 2001 From: brenda-br Date: Fri, 17 Feb 2023 16:14:55 +0530 Subject: Fix #60 Shows Name instead of variables in input dock widget --- DockWidgets/DockWidgetMaterialStream.py | 2 +- .../DockWidgetMaterialStream.cpython-37.pyc | Bin 9254 -> 9264 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/DockWidgets/DockWidgetMaterialStream.py b/DockWidgets/DockWidgetMaterialStream.py index a6396ef..851cae3 100644 --- a/DockWidgets/DockWidgetMaterialStream.py +++ b/DockWidgets/DockWidgetMaterialStream.py @@ -95,7 +95,7 @@ class DockWidgetMaterialStream(QDockWidget,ui_dialog): l.setText(str(self.input_dict[i])) lay = QGridLayout() - lay.addWidget(QLabel(i+":"),0,0, alignment=Qt.AlignLeft) + lay.addWidget(QLabel(self.obj.variables[i]['name']+":"),0,0, alignment=Qt.AlignLeft) lay.addWidget(l,0,1, alignment=Qt.AlignCenter) if(i != 'MolFlow'): lay.addWidget(QLabel(self.obj.variables[i]['unit']),0,2, alignment=Qt.AlignCenter) diff --git a/DockWidgets/__pycache__/DockWidgetMaterialStream.cpython-37.pyc b/DockWidgets/__pycache__/DockWidgetMaterialStream.cpython-37.pyc index 193f8e9..fee03cc 100644 Binary files a/DockWidgets/__pycache__/DockWidgetMaterialStream.cpython-37.pyc and b/DockWidgets/__pycache__/DockWidgetMaterialStream.cpython-37.pyc differ -- cgit