Re: [PyQt] Fwd: Re: c++ app integrate PyQt

2013-10-01 Thread Mathias . Born
Hi, In case you are on M$-WIndows, I'd like to mention a nasty bug in Visual C++ 2012 that took me days to dig out of google: http://bugs.python.org/issue17797 In short: when you embedd the python interpreter into an application compiled as "WINDOWS" (not as "CONSOLE"), the operating system doe

Re: [PyQt] Fwd: Re: c++ app integrate PyQt

2013-10-01 Thread Matt Newell
> > If you would forward an example to me it would very helpful. I think > both of you are suggesting that I wrap the C++ (BTW a very large app) > and then write the entire program using PyQt. Is that correct. In reality you only need to wrap a very very small part of the API to make the app

Re: [PyQt] Fwd: Re: c++ app integrate PyQt

2013-10-01 Thread John Fabiani
On 10/01/2013 11:52 AM, Matt Newell wrote: That sounds encouraging. But it lacks a little detail - like how does one embed python (PyQt) into a C++ app. The sip I sort of understand and it is doable. I only need a few C++ classes and that makes sense. But I don't have a clue how or where to st

Re: [PyQt] Fwd: Re: c++ app integrate PyQt

2013-10-01 Thread Matt Newell
> > That sounds encouraging. But it lacks a little detail - like how does > one embed python (PyQt) into a C++ app. The sip I sort of understand > and it is doable. I only need a few C++ classes and that makes sense. > But I don't have a clue how or where to start on embeding PyQt. Does > some

Re: [PyQt] Fwd: Re: c++ app integrate PyQt

2013-10-01 Thread John Fabiani
On 10/01/2013 09:04 AM, David Boddie wrote: On Tue Oct 1 16:08:23 BST 2013, John Fabiani wrote: On 10/01/2013 08:00 AM, David Boddie wrote: [...] You don't have to wrap the entire API or rewrite the whole application. You just need to identify which classes need to be exposed to Python and w

Re: [PyQt] Fwd: Re: c++ app integrate PyQt

2013-10-01 Thread David Boddie
On Tue Oct 1 16:08:23 BST 2013, John Fabiani wrote: > On 10/01/2013 08:00 AM, David Boddie wrote: [...] > > You don't have to wrap the entire API or rewrite the whole application. > > You just need to identify which classes need to be exposed to Python and > > wrap those. [...] > I'm so sorry

Re: [PyQt] Fwd: Re: c++ app integrate PyQt

2013-10-01 Thread John Fabiani
On 10/01/2013 08:00 AM, David Boddie wrote: On Tue Oct 1 15:16:58 BST 2013, John Fabiani wrote: If you would forward an example to me it would very helpful. I'll try to dig something out. I sent a broken example to the mailing list a few days ago, but I'm sure I could put something else togeth

Re: [PyQt] Fwd: Re: c++ app integrate PyQt

2013-10-01 Thread David Boddie
On Tue Oct 1 15:16:58 BST 2013, John Fabiani wrote: > If you would forward an example to me it would very helpful. I'll try to dig something out. I sent a broken example to the mailing list a few days ago, but I'm sure I could put something else together. > I think > both of you are suggesting

Re: [PyQt] Fwd: Re: c++ app integrate PyQt

2013-10-01 Thread John Fabiani
On 10/01/2013 02:46 AM, David Boddie wrote: On Tue Oct 1 03:05:55 BST 2013, John Fabiani wrote: Sorry if I mis-led you somewhere. The C++ app has been around for many years and is NOT going to be rewritten anytime soon. I want to integrate a python solution that will allow me to create new co

Re: [PyQt] Custom C++ types as signal arguments

2013-10-01 Thread David Boddie
On 28 September 2013 15:31:41, I wrote: > Thanks for the correction - it works! In fact, removing the StringList > type altogether appears to work, which puts me back in the position I > started in, but with working code. The typedef was originally put in as > a workaround for the crash and becaus

Re: [PyQt] Fwd: Re: c++ app integrate PyQt

2013-10-01 Thread David Boddie
On Tue Oct 1 03:05:55 BST 2013, John Fabiani wrote: > Sorry if I mis-led you somewhere. The C++ app has been around for many > years and is NOT going to be rewritten anytime soon. I want to > integrate a python solution that will allow me to create new content > using python all running withi

Re: [PyQt] Trying to upgrade Qt4 in Linux

2013-10-01 Thread Phil Thompson
On Mon, 30 Sep 2013 16:28:48 -0700, David Cortesi wrote: > In a Linux system my PyQt4 app fails because it relies on a feature that > dates to Qt 4.7. This Linux system has 4.6 installed. Also the PyQt4 was at > 4.6.x. So I did the following: > > Downloaded the Linux source of SIP, configure, ma