stub
This commit is contained in:
parent
dc412bb8e8
commit
bbe7a04d2c
@ -28,11 +28,11 @@ def format_data(data:dict, separator:str, selected_columns:list = None) -> str:
|
|||||||
if selected_columns is None:
|
if selected_columns is None:
|
||||||
selected_columns = list(data.keys())
|
selected_columns = list(data.keys())
|
||||||
for column_name in selected_columns:
|
for column_name in selected_columns:
|
||||||
output += column_name + separator
|
output += column_name.ljust(len(column_name) if len(column_name) > 8 else 9 ) + separator
|
||||||
output += '\n'
|
output += '\n'
|
||||||
for i in range(len(data[selected_columns[0]])):
|
for i in range(len(data[selected_columns[0]])):
|
||||||
for column in selected_columns:
|
for column in selected_columns:
|
||||||
output += str(data[column][i]).ljust(len(column) if len(column) > 6 else 7 ) + separator
|
output += str(data[column][i]).ljust(len(column) if len(column) > 8 else 9 ) + separator
|
||||||
output += '\n'
|
output += '\n'
|
||||||
return output
|
return output
|
||||||
|
|
||||||
|
|||||||
@ -84,9 +84,12 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
|||||||
"""
|
"""
|
||||||
Show the graph
|
Show the graph
|
||||||
"""
|
"""
|
||||||
|
if not self.show_graph_checkbox.checked:
|
||||||
|
return
|
||||||
self.slot0.addWidget(Mesh3DCanvas(obj).canvas.native)
|
self.slot0.addWidget(Mesh3DCanvas(obj).canvas.native)
|
||||||
self.slot1.addWidget(CrossSection2DCanvas(obj.get_x(),obj.get_z(),"Coupe X").canvas.native)
|
self.slot1.addWidget(CrossSection2DCanvas(obj.get_x(),obj.get_z(),"Coupe X").canvas.native)
|
||||||
self.slot2.addWidget(CrossSection2DCanvas(obj.get_y(),obj.get_z(),"Coupe Y").canvas.native)
|
self.slot2.addWidget(CrossSection2DCanvas(obj.get_y(),obj.get_z(),"Coupe Y").canvas.native)
|
||||||
|
|
||||||
def finish_analyse(self):
|
def finish_analyse(self):
|
||||||
"""
|
"""
|
||||||
Finish the analyse
|
Finish the analyse
|
||||||
|
|||||||
@ -6,8 +6,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>1067</width>
|
<width>1419</width>
|
||||||
<height>517</height>
|
<height>842</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
|
|||||||
@ -14,7 +14,7 @@ from PyQt5 import QtCore, QtGui, QtWidgets
|
|||||||
class Ui_MainWindow(object):
|
class Ui_MainWindow(object):
|
||||||
def setupUi(self, MainWindow):
|
def setupUi(self, MainWindow):
|
||||||
MainWindow.setObjectName("MainWindow")
|
MainWindow.setObjectName("MainWindow")
|
||||||
MainWindow.resize(1067, 517)
|
MainWindow.resize(1419, 842)
|
||||||
self.centralwidget = QtWidgets.QWidget(MainWindow)
|
self.centralwidget = QtWidgets.QWidget(MainWindow)
|
||||||
self.centralwidget.setObjectName("centralwidget")
|
self.centralwidget.setObjectName("centralwidget")
|
||||||
self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
|
self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user