mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-11 21:50:34 +05:00
survives also without gui
This commit is contained in:
parent
bc06d0781a
commit
a9520e6dd7
@ -13,12 +13,12 @@ del os
|
||||
from . import libngpy
|
||||
|
||||
def Redraw(*args, **kwargs):
|
||||
if libngpy.meshvis._Redraw(*args, **kwargs):
|
||||
try:
|
||||
try:
|
||||
if libngpy.meshvis._Redraw(*args, **kwargs):
|
||||
import netgen
|
||||
import tkinter
|
||||
cnt = 0
|
||||
while(netgen.gui.win.tk.dooneevent(tkinter._tkinter.DONT_WAIT) and cnt < 100):
|
||||
cnt += 1
|
||||
except:
|
||||
pass
|
||||
except:
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user