diff --git a/gui/utils/exportHtml.py b/gui/utils/exportHtml.py index 287495c14..2fb672fcd 100644 --- a/gui/utils/exportHtml.py +++ b/gui/utils/exportHtml.py @@ -12,11 +12,9 @@ class exportHtml(): return cls._instance def __init__(self): - print "init exportHtml()" self.thread = exportHtmlThread() def refreshFittingHTMl(self): - print "refresh HTML" settings = service.settings.HTMLExportSettings.getInstance() if (settings.getEnabled()): @@ -34,7 +32,6 @@ class exportHtmlThread(threading.Thread): self.stopRunning = True def run(self): - print "run" # wait 1 second just in case a lot of modifications get made time.sleep(1); if self.stopRunning: @@ -45,101 +42,114 @@ class exportHtmlThread(threading.Thread): settings = service.settings.HTMLExportSettings.getInstance() HTML = """ - - - - My Page - - - - - - - -
-
-

PyFa fits

-
-
- """ - HTML += '
-
- - """ + + + + +""" try: - print "write" FILE = open(settings.getPath(), "w") FILE.write(HTML.encode('utf-8')); FILE.close();