tests/python/runtime.py
author b.taylor@willowglen.ca
Wed, 12 Aug 2009 13:40:20 -0600
branchcherry-pick
changeset 373 a7f26d9f214f
parent 291 701c0601db02
permissions -rw-r--r--
fix pyZeroconf bug where getServiceInfo returns None.
This allows the discovery window to work with targets using Avahi to advertise their services.
(patch obtained from <http://sourceforge.net/tracker/?func=detail&aid=1600775&group_id=100909&atid=628622>)
291
701c0601db02 Added systematic stdout.flush runtime side, so that results appear in log window
etisserant
parents: 283
diff changeset
     1
import time,sys
283
d0e6fc0701fb Added "runtime.py", a file that is executed in python thread in runtime, before handling python_eval FBs requests. Added small python editor taken from wxPython demo, and appropriate icon and button to launch it.
etisserant
parents:
diff changeset
     2
def myprintfunc(arg):
d0e6fc0701fb Added "runtime.py", a file that is executed in python thread in runtime, before handling python_eval FBs requests. Added small python editor taken from wxPython demo, and appropriate icon and button to launch it.
etisserant
parents:
diff changeset
     3
    print arg
291
701c0601db02 Added systematic stdout.flush runtime side, so that results appear in log window
etisserant
parents: 283
diff changeset
     4
    sys.stdout.flush()
283
d0e6fc0701fb Added "runtime.py", a file that is executed in python thread in runtime, before handling python_eval FBs requests. Added small python editor taken from wxPython demo, and appropriate icon and button to launch it.
etisserant
parents:
diff changeset
     5
    return arg