FEM: move observer into PyGui
This commit is contained in:
@@ -91,7 +91,6 @@ SET(FemScripts_SRCS
|
||||
FemMesh2Mesh.py
|
||||
FemMeshTools.py
|
||||
FemResultTools.py
|
||||
FemSelectionObserver.py
|
||||
FemTools.py
|
||||
FemToolsCcx.py
|
||||
FemToolsZ88.py
|
||||
@@ -120,6 +119,7 @@ SET(FemObjectsScripts_SRCS
|
||||
|
||||
SET(FemGuiScripts_SRCS
|
||||
PyGui/FemCommands.py
|
||||
PyGui/FemSelectionObserver.py
|
||||
PyGui/__init__.py
|
||||
PyGui/_CommandFemAnalysis.py
|
||||
PyGui/_CommandFemConstraintSelfWeight.py
|
||||
|
||||
@@ -39,7 +39,6 @@ INSTALL(
|
||||
FemMesh2Mesh.py
|
||||
FemMeshTools.py
|
||||
FemResultTools.py
|
||||
FemSelectionObserver.py
|
||||
FemTools.py
|
||||
FemToolsCcx.py
|
||||
FemToolsZ88.py
|
||||
@@ -73,6 +72,7 @@ INSTALL(
|
||||
INSTALL(
|
||||
FILES
|
||||
PyGui/FemCommands.py
|
||||
PyGui/FemSelectionObserver.py
|
||||
PyGui/__init__.py
|
||||
PyGui/_CommandFemAnalysis.py
|
||||
PyGui/_CommandFemConstraintSelfWeight.py
|
||||
|
||||
@@ -365,7 +365,7 @@ class _TaskPanelFemElementFluid1D:
|
||||
if not self.sel_server:
|
||||
# if we do not check, we would start a new SelectionObserver on every click on addReference button
|
||||
# but close only one SelectionObserver on leaving the task panel
|
||||
import FemSelectionObserver
|
||||
from . import FemSelectionObserver
|
||||
self.sel_server = FemSelectionObserver.FemSelectionObserver(self.selectionParser, print_message)
|
||||
|
||||
def selectionParser(self, selection):
|
||||
|
||||
@@ -164,7 +164,7 @@ class _TaskPanelFemElementGeometry1D:
|
||||
if not self.sel_server:
|
||||
# if we do not check, we would start a new SelectionObserver on every click on addReference button
|
||||
# but close only one SelectionObserver on leaving the task panel
|
||||
import FemSelectionObserver
|
||||
from . import FemSelectionObserver
|
||||
self.sel_server = FemSelectionObserver.FemSelectionObserver(self.selectionParser, print_message)
|
||||
|
||||
def selectionParser(self, selection):
|
||||
|
||||
@@ -122,7 +122,7 @@ class _TaskPanelFemElementGeometry2D:
|
||||
if not self.sel_server:
|
||||
# if we do not check, we would start a new SelectionObserver on every click on addReference button
|
||||
# but close only one SelectionObserver on leaving the task panel
|
||||
import FemSelectionObserver
|
||||
from . import FemSelectionObserver
|
||||
self.sel_server = FemSelectionObserver.FemSelectionObserver(self.selectionParser, print_message)
|
||||
|
||||
def selectionParser(self, selection):
|
||||
|
||||
@@ -549,7 +549,7 @@ class _TaskPanelFemMaterial:
|
||||
if not self.sel_server:
|
||||
# if we do not check, we would start a new SelectionObserver on every click on addReference button
|
||||
# but close only one SelectionObserver on leaving the task panel
|
||||
import FemSelectionObserver
|
||||
from . import FemSelectionObserver
|
||||
self.sel_server = FemSelectionObserver.FemSelectionObserver(self.selectionParser, print_message)
|
||||
|
||||
def selectionParser(self, selection):
|
||||
|
||||
@@ -151,7 +151,7 @@ class _TaskPanelFemMeshBoundaryLayer:
|
||||
print_message = self.selection_mode_solid_print_message
|
||||
else:
|
||||
print_message = self.selection_mode_std_print_message
|
||||
import FemSelectionObserver
|
||||
from . import FemSelectionObserver
|
||||
self.sel_server = FemSelectionObserver.FemSelectionObserver(self.selectionParser, print_message)
|
||||
|
||||
def selectionParser(self, selection):
|
||||
|
||||
@@ -145,7 +145,7 @@ class _TaskPanelFemMeshGroup:
|
||||
if not self.sel_server:
|
||||
# if we do not check, we would start a new SelectionObserver on every click on addReference button
|
||||
# but close only one SelectionObserver on leaving the task panel
|
||||
import FemSelectionObserver
|
||||
from . import FemSelectionObserver
|
||||
self.sel_server = FemSelectionObserver.FemSelectionObserver(self.selectionParser, print_message)
|
||||
|
||||
def selectionParser(self, selection):
|
||||
|
||||
@@ -140,7 +140,7 @@ class _TaskPanelFemMeshRegion:
|
||||
if not self.sel_server:
|
||||
# if we do not check, we would start a new SelectionObserver on every click on addReference button
|
||||
# but close only one SelectionObserver on leaving the task panel
|
||||
import FemSelectionObserver
|
||||
from . import FemSelectionObserver
|
||||
self.sel_server = FemSelectionObserver.FemSelectionObserver(self.selectionParser, print_message)
|
||||
|
||||
def selectionParser(self, selection):
|
||||
|
||||
Reference in New Issue
Block a user