add waiting dialog while meshing

This commit is contained in:
Theophile Terraz committed 2025-11-04 09:30:40 +01:00
1 parent 279fa0bf5e
commit d934b5e381
2 files changed
+24 -10

No files matched your search

+15 -1
View File
@@ -50,6 +50,8 @@ from View.Tools.Plot.PamhyrCanvas import MplCanvas
from View.SelectReach.Window import SelectReachWindow
from View.WaitingDialog import WaitingDialog
from Meshing.Internal import InternalMeshing
from View.Geometry.Table import GeometryReachTableModel
@@ -326,7 +328,19 @@ class GeometryWindow(PamhyrWindow):
def _edit_meshing(self, data):
try:
mesher = InternalMeshing()
self._table.meshing(mesher, data, self.tableView)
tableview = self.tableView
def fn():
self._table.meshing(mesher, data, tableview)
# self._table.meshing(mesher, data, tableview)
dlg2 = WaitingDialog(
payload_fn=fn,
title="waiting_mesh",
parent=self
)
dlg2.exec_()
self._table.update()
except Exception as e:
logger_exception(e)