tests/linux/wxGlade/runtime.py
author greg
Thu, 28 May 2009 13:40:29 +0200
changeset 350 a3a5561bde1d
parent 315 408dd4b44ec8
permissions -rw-r--r--
- now call load, start, free PLC from the python Thread

- add a wx timer (500ms) that pull the plc state to refresh Beremiz icons
(fix problem when command PLC with the TaskBar icon)
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