summaryrefslogtreecommitdiff
path: root/src/main/python/DockWidgets/DockWidgetCompressorExpander.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/python/DockWidgets/DockWidgetCompressorExpander.py')
-rw-r--r--src/main/python/DockWidgets/DockWidgetCompressorExpander.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/python/DockWidgets/DockWidgetCompressorExpander.py b/src/main/python/DockWidgets/DockWidgetCompressorExpander.py
index 8b23b8e..9a8cb07 100644
--- a/src/main/python/DockWidgets/DockWidgetCompressorExpander.py
+++ b/src/main/python/DockWidgets/DockWidgetCompressorExpander.py
@@ -70,15 +70,16 @@ class DockWidgetCompressorExpander(QDockWidget,ui_dialog):
l = QLineEdit()
if self.input_dict[i] != None:
l.setText(str(self.input_dict[i]))
+ l.setFixedWidth(80)
lay = QGridLayout()
lay.addWidget(QLabel(self.obj.variables[i]['name']+":"),0,0, alignment=Qt.AlignLeft)
lay.addWidget(l,0,1, alignment=Qt.AlignCenter)
- lay.addWidget(QLabel(self.obj.variables[i]['unit']),0,2, alignment=Qt.AlignCenter)
+ lay.addWidget(QLabel(self.obj.variables[i]['unit']),0,2, alignment=Qt.AlignLeft)
self.formLayout.addRow(lay)
self.input_dict[i] = l
- self.lines = [line.rstrip('\n') for line in open('thermopackage.txt')]
+ self.lines = [line.rstrip('\n') for line in open(parentPath+'/python/utils/thermopackage.txt')]
for j in self.lines:
self.cbTP.addItem(str(j))
self.input_dict['Thermo Package'] = self.cbTP