mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
add waiting dialog while meshing
This commit is contained in:
1 parent
279fa0bf5e
commit
d934b5e381
2 files changed
+24
-10
No files matched your search
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user