- Thank you received: 0
Pausing netgen
2 years 3 months ago #4479
by pbmonk
Pausing netgen was created by pbmonk
This is on a Mac with OSX 12.4 and I run Netgen from the command line usually.
In the past (up to v2203 of Netgen I think) I have pause a sequence of Draw commands using simple input() eg
Draw (uplot.components[2].Norm(), mesh,'v')
input()
but after installing 2204 I get the message
Tcl_WaitForEvent: Notifier not initialized
zsh: abort netgen mITP_TDNSS.py
and Netgen crashes. Is there a good way to pause a sequence of graphical results?
Thanks for the help!
Peter
In the past (up to v2203 of Netgen I think) I have pause a sequence of Draw commands using simple input() eg
Draw (uplot.components[2].Norm(), mesh,'v')
input()
but after installing 2204 I get the message
Tcl_WaitForEvent: Notifier not initialized
zsh: abort netgen mITP_TDNSS.py
and Netgen crashes. Is there a good way to pause a sequence of graphical results?
Thanks for the help!
Peter
2 years 3 months ago #4480
by joachim
Replied by joachim on topic Pausing netgen
Hi Peter,
this problem is certainly caused by the recent decoupling of the core code and the gui.
I can confirm the problem on MacOS, a fix is the following:
add "import netgen.gui" into the py-script, and run the file using "python3 script.py"
Joachim
this problem is certainly caused by the recent decoupling of the core code and the gui.
I can confirm the problem on MacOS, a fix is the following:
add "import netgen.gui" into the py-script, and run the file using "python3 script.py"
Joachim
Time to create page: 0.095 seconds