tests/linux/wxGlade/runtime.py
author greg
Mon, 18 May 2009 07:43:03 +0200
changeset 343 fe2d1936b546
parent 315 408dd4b44ec8
permissions -rw-r--r--
Add try/except in wx_evaluator to get and print exception when command failed and unlock in all cases to not block the python thread
315
408dd4b44ec8 Dispatch wxGlade tests in linux and win32 folders
greg
parents:
diff changeset
     1
import time,sys
408dd4b44ec8 Dispatch wxGlade tests in linux and win32 folders
greg
parents:
diff changeset
     2
def myprintfunc(arg):
408dd4b44ec8 Dispatch wxGlade tests in linux and win32 folders
greg
parents:
diff changeset
     3
    print arg
408dd4b44ec8 Dispatch wxGlade tests in linux and win32 folders
greg
parents:
diff changeset
     4
    sys.stdout.flush()
408dd4b44ec8 Dispatch wxGlade tests in linux and win32 folders
greg
parents:
diff changeset
     5
    return arg