When I run the script, I can notice the the breaks in the shell-window but not in the report view window of the freecad app.
Is it possibly tho flush then App.Console.
Code: Select all
def say(wort):
App.Console.PrintMessage(str(wort) + "\n")
# App.Console.flush() ???
import time
import datetime
# main
say("hallo")
say(str(datetime.datetime.now()))
start = time.time()
time.sleep(0.05)
say("pause run")
time.sleep(1.05)
ende = time.time()
say(str(datetime.datetime.now()))
say(start)
say(ende)
say('script was runnnig ${0:.3f}'.format(ende-start))
Platform: 64-bit
Version: 0.13.1830 (Git)
Branch: releases/FreeCAD-0-13
Hash: ec7636d7aaf2612e9b43cff5d6a424037d53e505
Python version: 2.7.2
Qt version: 4.7.4
Coin version: 3.1.3
SoQt version: 1.5.0
OCC version: 6.5.0