From a9520e6dd76f8c52c2c21ee875660d1be88c72c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Thu, 9 Jan 2020 21:23:26 +0100 Subject: [PATCH] survives also without gui --- python/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/__init__.py b/python/__init__.py index 0981769c..e7c23d66 100644 --- a/python/__init__.py +++ b/python/__init__.py @@ -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