Re: [PyQt] Platforms directive or tags, or both?

2012-10-19 Thread Jens Thoms Toerring
bably should combine both methods - when ctypes is avai- lable then use it, otherwise (on ImportError geting thrown) revert back to writing out, compiling and running the small C++ program... Best regards, Jens -- \ Jens Thoms Toerring j...@toerring.de

Re: [PyQt] Platforms directive or tags, or both?

2012-10-18 Thread Jens Thoms Toerring
you mind if I steal that idea of yours for my own project? Best regards, Jens -- \ Jens Thoms Toerring j...@toerring.de \___ http://toerring.de ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Platforms directive or tags, or both?

2012-10-18 Thread Jens Thoms Toerring
so 'ssize_t'). This 'size_t.sip' file should be made part of the list of SIP files you that make up your project. The abouve function would be called in 'configure,py' rather early, possibly like this config = pyqtconfig.Configuration( ) create_size_t_sip( config ) I only have tested this with Linux and Windows (with V2008), some tweaks may be necessary for the Mac platform which I don't have access to, Best regards, Jens -- \ Jens Thoms Toerring j...@toerring.de \___ http://toerring.de ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Convert string to QString

2012-09-02 Thread Jens Thoms Toerring
.QString( "abc" ) or... Regards, Jens -- \ Jens Thoms Toerring j...@toerring.de \___ http://toerring.de ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Changing the wrapped object

2012-05-04 Thread Jens Thoms Toerring
On Fri, May 04, 2012 at 01:42:11PM +0100, Phil Thompson wrote: > On Fri, 4 May 2012 14:33:10 +0200, Jens Thoms Toerring > wrote: > >I have a C++ class SIP-wrapped with the '/Abstract/' > > annotation, Thus Pyton just has a pointer to instances of > > t

[PyQt] Changing the wrapped object

2012-05-04 Thread Jens Thoms Toerring
king with the next SIP release;-) Thanks and best regards, Jens -- \ Jens Thoms Toerring j...@toerring.de \___ http://toerring.de ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.

Re: [PyQt] Simple C++ example has undefined symbol

2012-01-22 Thread Jens Thoms Toerring
nst char * Word::reverse( ) { char *ps = the_word, *pe = the_word + strlen( the_word ); while ( ps < pe ) { char tmp = *ps; *ps++ = *pe; *pe-- = tmp; } return the_word; } -- B

Re: [PyQt] Simple C++ example has undefined symbol

2012-01-21 Thread Jens Thoms Toerring
my having to go and learn all about PyQT just to get it to run. I don't think it's a problem about PyQt but just of the way 'word.so' was created. > The command "Readelf -s word.so" shows the symbol is listed in the > library. I would use 'nm'

[PyQt] [SIP] Python crash with QString

2011-09-09 Thread Jens Thoms Toerring
#include "qs_lib.hpp" %End public: static QString text( ); }; - qs.py ------ import qs_sip as qs print qs.QS.text( ) -- \ Jens Thoms Toerring j...@toerring.de \___ http://toerring.de ___

Re: [PyQt] Running Python scripts from a SIP-wrapped library

2011-07-31 Thread Jens Thoms Toerring
ase(sipGIL);} Thanks really a lot, that did the trick! While I don't feel that I understand the reasons yet I'm happy enough that it seems to work now;-) Thanks again and best regards, Jens -- \ Jens Thoms Toerring j...@toerring.de \_

[PyQt] Running Python scripts from a SIP-wrapped library

2011-07-30 Thread Jens Thoms Toerring
oach is completely idiotic or, if it's not that bad, can give me some hints where I'm going wrong - or at least has some tips for things I should read and try to understand... Thanks and best regards, Jens -- \ Jens Thoms Toerring j...@toerrin

Re: [PyQt] SIP: newbie question 3

2011-07-08 Thread Jens Thoms Toerring
- tions to be converted to Python exceptions. By default excep= tion support is disabled. Best regards, Jens -- \ Jens Thoms Toerring j...@toerring.de \___ http://toerring.de ___ PyQ

Re: [PyQt] Building SIP project

2011-07-06 Thread Jens Thoms Toerring
Hi Phil. On Tue, Jul 05, 2011 at 10:33:51PM +0100, Phil Thompson wrote: > On Tue, 5 Jul 2011 21:57:14 +0200, Jens Thoms Toerring > wrote: > > Brilliant! That's something one can do easily in the confi- > > guration script: just set sip's '-c' option to a t

Re: [PyQt] SIP newbie question 2

2011-07-06 Thread Jens Thoms Toerring
ww.riverbankcomputing.co.uk/static/Docs/sip4/annotations.html#function-annotations Refards, Jens -- \ Jens Thoms Toerring j...@toerring.de \___ http://toerring.de

Re: [PyQt] Building SIP project

2011-07-05 Thread Jens Thoms Toerring
a similar way. But it for sure is worth comparing to what's used in PyQwt since I'm rather a beginner with Python;-) Thanks and best regards, Jens -- \ Jens Thoms Toerring j...@toerring.de \

Re: [PyQt] Building SIP project

2011-07-05 Thread Jens Thoms Toerring
te) over to the direc- tory where they're supposed to end up in for compilation;-) Thanks a lot and best regards, Jens -- \ Jens Thoms Toerring j...@toerring.de \___ http://toerring.de ___ PyQt m

[PyQt] Building SIP project

2011-07-05 Thread Jens Thoms Toerring
how to get this done? Thanks and best regards, Jens -- \ Jens Thoms Toerring j...@toerring.de \___ http://toerring.de ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankc

[PyQt] SIP: Suggestions for a new major version

2011-04-13 Thread Jens Thoms Toerring
until SIP finally is satisfied. That works but is rather time consuming and then I'm not really happy when I don't understand what I'm doing and have to rely on trial- and-error... Best regards, Jens -- \ Jens Thoms Toerring

Re: [PyQt] SIP Problem dynamic loading in wrapped library

2011-04-01 Thread Jens Thoms Toerring
Hi On Thu, Mar 31, 2011 at 11:35:00PM +0200, Jens Thoms Toerring wrote: > yesterday I wrote about a problem with a SIP wrapped > shared library (written in C++) I have that in turn > dynamically loads further shared libraries - which fails > due to undefined symbols, but which de

Re: [PyQt] SIP Problem dynamic loading in wrapped library

2011-03-31 Thread Jens Thoms Toerring
nk options for both the SIP wrapper and the wrapped library, alas also without success:-( Thanks for your attention and best regards, Jens -- \ Jens Thoms Toerring j...@toerring.de \___ http://toerring.de ___

Re: [PyQt] SIP Problem dynamic loading in wrapped library

2011-03-30 Thread Jens Thoms Toerring
Hi David, On Thu, Mar 31, 2011 at 01:24:44AM +0200, David Boddie wrote: > On Wed, 30 Mar 2011 23:07:07 +0200, Jens Thoms Toerring wrote: > > > Since with the QLibrary class there doesn't seem to be a > > possibility to get at the error messages from the dynamic linker >

[PyQt] SIP Problem dynamic loading in wrapped library

2011-03-30 Thread Jens Thoms Toerring
er- haps has found a work-around (or at least an explanation for what is happening)? Thanks and best regards, Jens -- \ Jens Thoms Toerring j...@toerring.de \___ http://toerring.de

Re: [PyQt] SIP and virtual functions

2010-11-23 Thread Jens Thoms Toerring
epresents, but getting a copy of the accessor is not a problem;-) Thanks and best regards, Jens -- \ Jens Thoms Toerring j...@toerring.de \___ http://toerring.de ___ P

Re: [PyQt] SIP and virtual functions

2010-11-23 Thread Jens Thoms Toerring
ASE_GIL(sipGILState) A sipRes = *reinterpret_cast(tmp); delete [] tmp; return sipRes; } But perhaps that's a stupid idea (especially since I have no good knowledge of the innards of the sipParseResult() function). It's just an idea I came upon while pondering wha

[PyQt] SIP and virtual functions

2010-11-23 Thread Jens Thoms Toerring
.g. constructors with a single int argument which don't exist at all). Has anyone an idea what I'm doing wrong and/or how to resolve this issue? Thanks and best regards, Jens -- \ Jens Thoms Toerring j...@toerring.de \___