mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
Merge branch 'dont_import_tkinter' into 'master'
Don't import tkinter See merge request jschoeberl/netgen!220
This commit is contained in:
commit
38d8d0cd71
@ -24,6 +24,10 @@ if(NOT WIN32)
|
||||
target_compile_options(ngcore PRIVATE -fvisibility=hidden)
|
||||
endif(NOT WIN32)
|
||||
|
||||
if(WIN32)
|
||||
target_compile_options(ngcore PUBLIC /bigobj)
|
||||
endif(WIN32)
|
||||
|
||||
target_compile_definitions(ngcore PUBLIC $<$<CONFIG:DEBUG>:NETGEN_ENABLE_CHECK_RANGE>)
|
||||
|
||||
if(CHECK_RANGE)
|
||||
|
@ -18,7 +18,7 @@ namespace netgen
|
||||
public:
|
||||
DLL_HEADER VisualSceneSTLGeometry ();
|
||||
DLL_HEADER virtual ~VisualSceneSTLGeometry ();
|
||||
DLL_HEADER void SetGeometry (class STLGeometry * astlgeometry) { stlgeometry = astlgeometry; }
|
||||
void SetGeometry (class STLGeometry * astlgeometry) { stlgeometry = astlgeometry; }
|
||||
|
||||
DLL_HEADER virtual void BuildScene (int zoomall = 0);
|
||||
DLL_HEADER virtual void DrawScene ();
|
||||
|
@ -1,8 +1,3 @@
|
||||
if(USE_GUI)
|
||||
set(IMPORT_TKINTER True)
|
||||
else()
|
||||
set(IMPORT_TKINTER False)
|
||||
endif()
|
||||
configure_file(__init__.py ${CMAKE_CURRENT_BINARY_DIR}/__init__.py @ONLY)
|
||||
|
||||
install(FILES
|
||||
|
@ -1,10 +1,6 @@
|
||||
import os
|
||||
import sys
|
||||
|
||||
# import tkinter only if Netgen was configured with USE_GUI=ON
|
||||
if @IMPORT_TKINTER@:
|
||||
import tkinter
|
||||
|
||||
_netgen_bin_dir=os.path.realpath(os.path.join(os.path.dirname(__file__),'..','@NETGEN_PYTHON_RPATH_BIN@'))
|
||||
_netgen_lib_dir=os.path.realpath(os.path.join(os.path.dirname(__file__),'..','@NETGEN_PYTHON_RPATH@'))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user