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
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
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
.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
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
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.
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
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'
#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
___
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
\_
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
-
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
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
ww.riverbankcomputing.co.uk/static/Docs/sip4/annotations.html#function-annotations
Refards, Jens
--
\ Jens Thoms Toerring j...@toerring.de
\___ http://toerring.de
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
\
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
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
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
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
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
___
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
>
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
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
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
.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
\___
25 matches
Mail list logo