Re: [Python.NET] bridging C# and Python

2007-11-28 Thread Feihong Hsu
Have you tried using callbacks through delegates instead? In practice I haven't had any problems doing stuff like that. For example the following works fine: def callback(sender, args): print 'You clicked on', sender.Text btn = Button() btn.Text = 'Click me!' btn.Click += callback

Re: [Python.NET] bridging C# and Python

2007-11-28 Thread Brian Lloyd
Python modules just need to be somewhere on the pythonpath (sys.path). You should probably be careful how crazy you get with python calling C# calling back into python, etc. - its fairly easy to get into a deadlock situation that way due to the python global interpreter lock... -Brian On 11/2