mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-26 04:40: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
|
from . import libngpy
|
||||||
|
|
||||||
def Redraw(*args, **kwargs):
|
def Redraw(*args, **kwargs):
|
||||||
if libngpy.meshvis._Redraw(*args, **kwargs):
|
try:
|
||||||
try:
|
if libngpy.meshvis._Redraw(*args, **kwargs):
|
||||||
import netgen
|
import netgen
|
||||||
import tkinter
|
import tkinter
|
||||||
cnt = 0
|
cnt = 0
|
||||||
while(netgen.gui.win.tk.dooneevent(tkinter._tkinter.DONT_WAIT) and cnt < 100):
|
while(netgen.gui.win.tk.dooneevent(tkinter._tkinter.DONT_WAIT) and cnt < 100):
|
||||||
cnt += 1
|
cnt += 1
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user