|
I had something working using IronPython.Runtime.OldClass and
IronPython.Runtime.OldInstance, but I don't even understand what i've
done... First, my IP script "ClassIP.py", defining a small class : class MyClass:And then a form with one TextBox in C# : public Form1() { InitializeComponent(); new ClassIP().Initialize(); IronPython.Runtime.OldInstance current = (IronPython.Runtime.OldInstance) ((IronPython.Runtime.OldClass)ClassIP.MyClass).Call("from C# !"); IronPython.Runtime.Method currentTest = (IronPython.Runtime.Method)current.__class__.__dict__["test"]; textBox1.Text = (string) currentTest.Call(current); } Is this something meaningful for you ? Frédéric Cadier Sanghyeon Seo a écrit : 2006/7/12, Frédéric Cadier <[EMAIL PROTECTED]>: |
_______________________________________________ users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
