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:
|
||||
selected_columns = list(data.keys())
|
||||
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'
|
||||
for i in range(len(data[selected_columns[0]])):
|
||||
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'
|
||||
return output
|
||||
|
||||
|
||||
@ -84,9 +84,12 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
||||
"""
|
||||
Show the graph
|
||||
"""
|
||||
if not self.show_graph_checkbox.checked:
|
||||
return
|
||||
self.slot0.addWidget(Mesh3DCanvas(obj).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)
|
||||
|
||||
def finish_analyse(self):
|
||||
"""
|
||||
Finish the analyse
|
||||
|
||||
@ -6,8 +6,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>1067</width>
|
||||
<height>517</height>
|
||||
<width>1419</width>
|
||||
<height>842</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
|
||||
@ -14,7 +14,7 @@ from PyQt5 import QtCore, QtGui, QtWidgets
|
||||
class Ui_MainWindow(object):
|
||||
def setupUi(self, MainWindow):
|
||||
MainWindow.setObjectName("MainWindow")
|
||||
MainWindow.resize(1067, 517)
|
||||
MainWindow.resize(1419, 842)
|
||||
self.centralwidget = QtWidgets.QWidget(MainWindow)
|
||||
self.centralwidget.setObjectName("centralwidget")
|
||||
self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user