survives also without gui

This commit is contained in:
Joachim Schöberl 2020-01-09 21:23:26 +01:00
parent bc06d0781a
commit a9520e6dd7

View File

@ -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