Re: C# and Python

2007-08-23 Thread subeen
On Aug 21, 5:00 pm, Bikal KC <[EMAIL PROTECTED]> wrote: > subeenwrote: > > When the user clicks Quick Sort button, the quicksort.py will be > > called and it will sort the numbers. > > One way to do this: > In your C# app, have the mouse click event handler call python > interpreter "/path/to/pytho

Re: C# and Python

2007-08-21 Thread subeen
On Aug 21, 7:24 pm, "Chris Mellon" <[EMAIL PROTECTED]> wrote: > On 8/21/07, Ant <[EMAIL PROTECTED]> wrote: > > > On Aug 21, 11:01 am, subeen <[EMAIL PROTECTED]> wrote: > > > Hi, > > ... > > > But I want to write the GUI and number generation program in C#.net. > > > When the user clicks Quick Sort

Re: C# and Python

2007-08-21 Thread Chris Mellon
On 8/21/07, Ant <[EMAIL PROTECTED]> wrote: > On Aug 21, 11:01 am, subeen <[EMAIL PROTECTED]> wrote: > > Hi, > ... > > But I want to write the GUI and number generation program in C#.net. > > When the user clicks Quick Sort button, the quicksort.py will be > > called and it will sort the numbers. >

Re: C# and Python

2007-08-21 Thread Bikal KC
>From Eric CHAO [accidently sent to me]: Maybe you could try IronPython. It's another implement in .NET platform. Not 100% compatible but for sorting, that's ok. I think it's a better way to use GUI that .NET provide. And if you download VS 2005 SDK, there is many demo projects about IronPython.

Re: C# and Python

2007-08-21 Thread Ant
On Aug 21, 11:01 am, subeen <[EMAIL PROTECTED]> wrote: > Hi, ... > But I want to write the GUI and number generation program in C#.net. > When the user clicks Quick Sort button, the quicksort.py will be > called and it will sort the numbers. Probably worth looking at IronPython, the Python impleme

Re: C# and Python

2007-08-21 Thread Bikal KC
subeen wrote: > When the user clicks Quick Sort button, the quicksort.py will be > called and it will sort the numbers. One way to do this: In your C# app, have the mouse click event handler call python interpreter "/path/to/python /path/to/quicksort.py". Make quicksort.py write to a file the res

Re: C# and Python

2007-08-21 Thread Olexandr Melnyk
Aside from method mentioned by Tom, you can invoke your script through command line: C:\Python24\bin\python.exe file-to-sort.txt result-file.txt 2007/8/21, subeen <[EMAIL PROTECTED]>: > > Hi, > I am a newcomer in Python. I am going to write a small Python > application that will run in windows x

Re: C# and Python

2007-08-21 Thread Gerard Flanagan
On Aug 21, 12:01 pm, subeen <[EMAIL PROTECTED]> wrote: > Hi, > I am a newcomer in Python. I am going to write a small Python > application that will run in windows xp. This application needs to > have GUI. Is it possible to make a C# application using visual studio > 2005 that will call the python

Re: C# and Python

2007-08-21 Thread Tommy Nordgren
On 21 aug 2007, at 12.01, subeen wrote: > Hi, > I am a newcomer in Python. I am going to write a small Python > application that will run in windows xp. This application needs to > have GUI. Is it possible to make a C# application using visual studio > 2005 that will call the python scripts? Let

Re: C++ and Python

2007-03-10 Thread Thomas Heller
Alex Martelli schrieb: > hg <[EMAIL PROTECTED]> wrote: >... >> target but rather C: I need to integrate a printer driver and and would >> like if possible to avoid all of the .h stuff involved with SWIG (I am not >> being sarcastic): if I can setup my prototypes directly in python, why go >> th

Re: C++ and Python

2007-03-10 Thread Alex Martelli
hg <[EMAIL PROTECTED]> wrote: ... > target but rather C: I need to integrate a printer driver and and would > like if possible to avoid all of the .h stuff involved with SWIG (I am not > being sarcastic): if I can setup my prototypes directly in python, why go > through an extra layer ? > > Are

Re: C++ and Python

2007-03-09 Thread Gabriel Genellina
En Fri, 09 Mar 2007 18:16:43 -0300, hg <[EMAIL PROTECTED]> escribió: > I'm not very familiar with the technology as I just have had to modify an > extension here and there. > > I guess my question is off topic as a C++ dll / shared lib is not my main > target but rather C: I need to integrate a pr

Re: C++ and Python

2007-03-09 Thread hg
Gabriel Genellina wrote: > En Fri, 09 Mar 2007 05:28:54 -0300, hg <[EMAIL PROTECTED]> escribió: > >> Mandus wrote: >>> 8 Mar 2007 22:04:48 -0800 skrev [EMAIL PROTECTED]: I'm considering about generating some Python Bindings for C++ libraries. What are considered the best tools for doing

Re: C++ and Python

2007-03-09 Thread Gabriel Genellina
En Fri, 09 Mar 2007 05:28:54 -0300, hg <[EMAIL PROTECTED]> escribió: > Mandus wrote: >> 8 Mar 2007 22:04:48 -0800 skrev [EMAIL PROTECTED]: >>> I'm considering about generating some Python Bindings for C++ >>> libraries. What are considered the best tools for doing something like >>> this? I know t

Re: C++ and Python

2007-03-09 Thread Roman Yakovenko
On 8 Mar 2007 22:04:48 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi Everyone, I'm considering about generating some Python Bindings for C++ libraries. What are considered the best tools for doing something like this? I know that there are SWIG, SIP, Boost.Python, and GCC_XML. If you

Re: C++ and Python

2007-03-09 Thread hg
Mandus wrote: > 8 Mar 2007 22:04:48 -0800 skrev [EMAIL PROTECTED]: >> Hi Everyone, >> >> I'm considering about generating some Python Bindings for C++ >> libraries. What are considered the best tools for doing something like >> this? I know that there are SWIG, SIP, Boost.Python, and GCC_XML. > >

Re: C++ and Python

2007-03-09 Thread Mandus
8 Mar 2007 22:04:48 -0800 skrev [EMAIL PROTECTED]: > Hi Everyone, > > I'm considering about generating some Python Bindings for C++ > libraries. What are considered the best tools for doing something like > this? I know that there are SWIG, SIP, Boost.Python, and GCC_XML. We are doing this quite e

Re: C++ and Python

2007-03-09 Thread cptnwillard
On Mar 9, 7:04 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi Everyone, > > I'm considering about generating some Python Bindings for C++ > libraries. What are considered the best tools for doing something like > this? I know that there are SWIG, SIP, Boost.Python, and GCC_XML. > > Thanks!

Re: C++ and Python

2007-03-09 Thread Bjoern Schliessmann
[EMAIL PROTECTED] wrote: > I'm considering about generating some Python Bindings for C++ > libraries. What are considered the best tools for doing something > like this? I know that there are SWIG, SIP, Boost.Python, and > GCC_XML. Please excuse me for asking the following stupid question ... I'

Re: C++ and Python

2006-03-31 Thread Roman Yakovenko
On 30 Mar 2006 23:01:21 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I've been learning to write VST plugins in C++ and would like to switch > back to Python. The first step of writing the plugin is to import the > C++ header files from the Steinberg SDK. How can I do this in Python. > I

Re: C++ and Python

2006-03-30 Thread marc . wyburn
sorry accidentally hit post. has nyone tried this before? Thanks, Marc. -- http://mail.python.org/mailman/listinfo/python-list