mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Geometry: Window update minor change.
This commit is contained in:
1 parent
4d95e42d20
commit
7ef2df8535
1 file changed
+11
-16
+11
-16
@@ -192,6 +192,17 @@ class GeometryWindow(PamhyrWindow):
|
||||
.selectionChanged\
|
||||
.connect(self.select_current_profile)
|
||||
|
||||
self._table.layoutChanged.connect(self.update)
|
||||
|
||||
def update(self):
|
||||
self.update_profile_windows()
|
||||
self.plot_xy()
|
||||
self.plot_kpc()
|
||||
self.plot_ac()
|
||||
|
||||
self.select_current_profile()
|
||||
self.changed_slider_value()
|
||||
|
||||
def import_from_file(self):
|
||||
options = QFileDialog.Options()
|
||||
settings = QSettings(QSettings.IniFormat,
|
||||
@@ -216,11 +227,6 @@ class GeometryWindow(PamhyrWindow):
|
||||
size = os.stat(filename).st_size
|
||||
self._table.import_geometry(0, filename)
|
||||
|
||||
self.update_profile_windows()
|
||||
self.plot_xy()
|
||||
self.plot_kpc()
|
||||
self.plot_ac()
|
||||
|
||||
def edit_profile(self):
|
||||
self.tableView.model().blockSignals(True)
|
||||
|
||||
@@ -252,11 +258,6 @@ class GeometryWindow(PamhyrWindow):
|
||||
mesher = MeshingWithMage()
|
||||
self._table.meshing(mesher, -1)
|
||||
|
||||
self.update_profile_windows()
|
||||
self.plot_xy()
|
||||
self.plot_kpc()
|
||||
self.plot_ac()
|
||||
|
||||
pyqtSlot(bool)
|
||||
|
||||
def changed_profile_slot(self, status):
|
||||
@@ -412,12 +413,6 @@ class GeometryWindow(PamhyrWindow):
|
||||
if len(rows) > 0:
|
||||
self._table.delete(rows)
|
||||
|
||||
self.update_plot_xy()
|
||||
self.select_current_profile()
|
||||
|
||||
self.plot_kpc()
|
||||
self.changed_slider_value()
|
||||
|
||||
def index_selected_row(self):
|
||||
return self.tableView\
|
||||
.selectionModel()\
|
||||
|
||||
Reference in new issue
Block a user