![](https://secure.gravatar.com/avatar/54c6b3de4083998611a68f34b21991b6.jpg?s=120&d=mm&r=g)
Hi all, I am developing an application which Graphic interface is in C#, but I want to call methods in some situations (when press certain button ) that are coded in Python. First, it can be possible to mix both languages?, and second, What should I do, use Iron Python or Pithon.net?. Sorry for my ignorance. Thanks in advance _______________________________ José Ignacio Gisbert Sanus
![](https://secure.gravatar.com/avatar/0d043e32f5426c691137be177a6cbef3.jpg?s=120&d=mm&r=g)
Yes, it is possible to "mix" C# and Python. You can have Python use classes and methods defined in a .NET assembly (DLL file), or you can create the PythonEngine object in your C# code and run Python scripts using that. There's no way to answer the second question without knowing more details. The most important question is what kind of Python scripts are being called. IronPython is currently unable to deal with certain Python libraries. You might find that some of the your Python scripts won't run in IronPython. - Feihong Jose Ignacio Gisbert <jigisbert.etra-id@grupoetra.com> wrote: Hi all, I am developing an application which Graphic interface is in C#, but I want to call methods in some situations (when press certain button ) that are coded in Python. First, it can be possible to mix both languages?, and second, What should I do, use Iron Python or Pithon.net?. Sorry for my ignorance. Thanks in advance _______________________________ José Ignacio Gisbert Sanus _________________________________________________ Python.NET mailing list - PythonDotNet@python.org http://mail.python.org/mailman/listinfo/pythondotnet --------------------------------- Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now.
participants (2)
-
Feihong Hsu
-
Jose Ignacio Gisbert