From: Vineet Markan
Sent: Sunday, June 20, 2010 6:59 AM
To: wxpython-users@googlegroups.com
Subject: Re: [wxPython-users] Is wxPython suitable for me
Steve,
Thanx for the reply. Actually, I am going for a cross platform app. The reason I want to use C++ is that I have some performance critical work and heavy computations to do. For this reason I want to deploy CUDA, to parallelize some portions of my code. Visual C provides a very strong means to debug such applications.
Do we have an editor for (wx)Python which supports features like class browsing, auto completion, auto intendation. Would be really helpful in writing some code. I am using PyAlaMode which is simply text editor with some syntax highlighting.
Thanks in advance.
Vineet,
There have been no end of discussions on this news group regarding preferences for IDEs for python, I personally at the moment am using UliPad - this does do all of the above but also has some odd behaviors the I haven't quite got a handle on yet - I have found that running it from source produces better results than running the precompiled executable. I have also been trying spyder but an not yet fully up to speed on it - in the past I have also used Code::Blocks and Boa Constructor both of which also have some very good features. A lot of the selection of the tools is a matter of personal preferences take a look at the python wiki athttp://wiki.python.org/moin/IntegratedDevelopmentEnvironmentsfor a selection of reviews.
Steve
On Sat, Jun 19, 2010 at 11:39 PM, GadgetSteve <gadgetst...@live.co.uk> wrote:
--------------------------------------------------
From: "Vineet Markan" <vineet.mar...@gmail.com>
Sent: Saturday, June 19, 2010 6:26 PM
To: "wxPython-users" <wxpython-users@googlegroups.com>
Subject: [wxPython-users] Is wxPython suitable for me
Hi
I am new to wxPython, in fact new to GUI building\. I found wxPython
very intuitive and want to use it for my projects\. I write most of my
code in C\+\+ or python\. Will wxPython allow me to write and link my
code to both these languages and how?
Yes - you have 2 choices if you must use both, (personally I would go for pure wxPython or C++ with wxWidgets):
1/ wxPython main loop & GUI calling C++ libraries
2/ C++ main loop linked to and calling (wx)Pyton
in fact since the python can call the C++ and the C++ can call the python you can go round and round the cycle.
At a guess - since you say you are new to GUI building as well as to wxPython - you will probably be looking to have a wxPython GUI that calls some C++ libraries. In that case you will need to build your C++ utilities into a DLL and call it from the Python. For information on building your C/C++ into a DLL see the documentation for your compiler of choice - many modern IDEs make building DLLs quite straight forward. For how to call functions from the DLL see the python, (not wxPython), documentation on ctypes. You will probably also need to look at py2exe, or something similar, to bind your wxPython app into an exe which you can ship with the dll.
(Note that if you are aiming for a target other than windows, i.e. Linux/Unix based, you will need to substitute .so for DLL, executable for .exe and freeze for py2exe in the above - if you are going for cross platform I would strongly suggest going for "pure" (wx)Python as you will not need to compile anything other than the windows distribution using py2exe).
Gadget/Steve
Thanx in advance\.
\-\-
To unsubscribe, send email to wxPython\-users\+unsubscribe@googlegroups\.com
or visithttp://groups.google.com/group/wxPython-users?hl=en
--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visithttp://groups.google.com/group/wxPython-users?hl=en
--
Vineet Markan
Lead, Operations
Anaya
vin...@anayalabs.com
--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visithttp://groups.google.com/group/wxPython-users?hl=en