Re: [Python.NET] winForms, threading and dragdrop ?

2005-09-12 Thread Guy Robinson
Cheers Brian. Interestingly the script runs OK from within PythonWin. I guess PythonWin must be setting STA correctly but the python console doesn't? Guy Brian Lloyd wrote: > Hi Guy -- as far as I know, you can't change the thread > state after any COM or interop calls have happened (and > Pyt

Re: [Python.NET] winForms, threading and dragdrop ?

2005-09-12 Thread Brian Lloyd
Hi Guy -- as far as I know, you can't change the thread state after any COM or interop calls have happened (and Python for .NET is all interop...). What you probably need to do is set the attribute in the C# 'embedding' application before initializing the python engine (or making any other int