Re: [IronPython] Dispatcher Problem

2011-06-07 Thread Vernon Cole
I have not tested this on a GUI screen, but... You should be able to assign any class with a .write() method to sys.stdout (and/or sys.stderr) so that normal "print" statements/functions and tracebacks will be sent to that method. I use the trick frequently to get a simple logging facility by assig

Re: [IronPython] Dispatcher Problem

2011-06-07 Thread AndyF.
Thank you Dino modifying my Python dispatcher to read dispatcher.BeginInvoke(System.Action(lambda *_: function(*args))) fixed the problem. Unfortunately for me, utilising the dispatcher has an unforseen side effect - the 'messages' printed to my console only appear when the python script exit

Re: [IronPython] Dispatcher Problem

2011-06-06 Thread Dino Viehland
AndyF wrote: > Hi Chaps > > I have attempted to purloin some of the code shipped with IP in Action and, > following issues, I have even gone to the lengths of reading the book! > > I am getting the error 'expect Delegate, got Function' when I use the > following code. FYI I am passing in a refere