Skip to content
Snippets Groups Projects
Commit bbe7a04d authored by Djalim Simaila's avatar Djalim Simaila
Browse files

stub

parent dc412bb8
No related branches found
No related tags found
1 merge request!10Gui graphs
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment