[PyKDE] strange seg fault with SIGNAL('PyObject *')

2006-03-22 Thread Patrick Stinson
I don't have debuggin symbols installed, but I am consistently getting a seg fault after calling the python slot connected to SIGNAL('PyObject *') from a QWidget subclass. I am usually passing a python string with the signal, but if I pass None instead, it doesn't crash. I have a button group emitt

Re: [review] [PyKDE] build error w/ KDE 3.5.2 on Mac OS X (Qt3/X11)

2006-03-22 Thread Benjamin Reed
On 3/22/06, Jim Bublitz <[EMAIL PROTECTED]> wrote: > python configure.py -lkparts -j4 yeah, no dice with that either ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [review] [PyKDE] build error w/ KDE 3.5.2 on Mac OS X (Qt3/X11)

2006-03-22 Thread Benjamin Reed
On 3/22/06, Jim Bublitz <[EMAIL PROTECTED]> wrote: > In this case, I'd suspect that gcc 4.0 is the problem - early versions (before > 4.0.3 ??) can't handle the large files PyKDE generates, although I would have > expected problems before you got this far. Since you're compiling > sipkpartspart0.

Re: [review] [PyKDE] build error w/ KDE 3.5.2 on Mac OS X (Qt3/X11)

2006-03-22 Thread Jim Bublitz
On Wednesday 22 March 2006 14:25, Andreas Pakulat wrote: > On 22.03.06 12:55:25, Jim Bublitz wrote: > > On Wednesday 22 March 2006 09:59, Benjamin Reed wrote: > > In this case, I'd suspect that gcc 4.0 is the problem - early versions > > (before 4.0.3 ??) > > IIRC I had used 4.0.1 when I reported t

Re: [review] [PyKDE] build error w/ KDE 3.5.2 on Mac OS X (Qt3/X11)

2006-03-22 Thread Andreas Pakulat
On 22.03.06 12:55:25, Jim Bublitz wrote: > On Wednesday 22 March 2006 09:59, Benjamin Reed wrote: > In this case, I'd suspect that gcc 4.0 is the problem - early versions > (before > 4.0.3 ??) IIRC I had used 4.0.1 when I reported this to work here on the list. Back then you re-enabled automatic

Re: [review] [PyKDE] build error w/ KDE 3.5.2 on Mac OS X (Qt3/X11)

2006-03-22 Thread Jim Bublitz
On Wednesday 22 March 2006 09:59, Benjamin Reed wrote: > I'm trying to package kdebindings 3.5.2 for fink (against qt/x11), and > running into a compile error in pykde: > > ---(snip!)--- > g++-4.0 -c -Wno-deprecated-declarations -pipe -fPIC -Os -Wall -W > -D__DARWIN_X11__ -DQT_NO_DEBUG -DQT_THREAD_

[PyKDE] Re: QScrollBar, fixed width

2006-03-22 Thread Patrick Stinson
I got a reply from qt-interest regarding this. What is the state of QStyle sub-classes in pyqt4? is there a reason that they are not included? Thanks. The qt-interest reply follows: At 09:34 07.03.2006, you wrote:>How do I set the width of a QScrollBar in a QScrollArea. calling >scrollarea->verti

[PyKDE] build error w/ KDE 3.5.2 on Mac OS X (Qt3/X11)

2006-03-22 Thread Benjamin Reed
I'm trying to package kdebindings 3.5.2 for fink (against qt/x11), and running into a compile error in pykde: ---(snip!)--- g++-4.0 -c -Wno-deprecated-declarations -pipe -fPIC -Os -Wall -W -D__DARWIN_X11__ -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/Users/ranger/tmp/kdebindings/kdebindings-3.5.2-new/pyth

Re: [PyKDE] SIP: /Array/ and memory deallocation

2006-03-22 Thread Phil Thompson
On Wednesday 22 March 2006 1:43 pm, Giovanni Bajo wrote: > Hello, > > I have an API like this: > > class Foo > { > public: > Foo(char *filename); > Foo(char *buffer, int size); > [...] > }; > > To make both construction forms work, I have wrapped the second constructor > as a staticmeth

Re: [PyKDE] SIP: adding code to methods?

2006-03-22 Thread Phil Thompson
On Wednesday 22 March 2006 1:47 pm, Giovanni Bajo wrote: > Phil Thompson <[EMAIL PROTECTED]> wrote: > >> - I was thinking of defining a common utility function with %TypeCode, > > and > > >> then calling it for each method. How can I define C++ code which is > >> executed after the method invokatio

Re: [PyKDE] SIP: MappedType for pointers?

2006-03-22 Thread Jim Bublitz
On Wednesday 22 March 2006 06:28, Hans-Peter Jansen wrote: > Am Mittwoch, 22. März 2006 14:19 schrieb Giovanni Bajo: > > Jim Bublitz <[EMAIL PROTECTED]> wrote: > > > Same as the following, except "%MappedType wchar_t" and other > > > obvious changes. > > > > Many thanks Jim. For some reason, I had

Re: [review] [PyKDE] Re: How to embed Python in C++

2006-03-22 Thread Jim Bublitz
On Wednesday 22 March 2006 02:56, Eric Jardim wrote: > 2006/3/21, Eric Jardim <[EMAIL PROTECTED]>: > > How do I embed Python script in C++? > > C'mon folks... > > How do I convert a "PyObject*" to a "QWidget*" returned from a function > like "PyRun_String()"? Or you can use sip.wrapinstance and si

Re: [PyKDE] Sugestions for PyQt4

2006-03-22 Thread Eric Jardim
2006/3/22, Giovanni Bajo <[EMAIL PROTECTED]>: Eric Jardim <[EMAIL PROTECTED]> wrote:pyuic4 needs to generate the .ts file where the "Hello" string is placedwithin the "Foo" context. How do you plan to do that? Take a look at this: http://lists.kde.org/?l=pykde&m=110806555428004&w=2 I am not sure

Re: [PyKDE] SIP: MappedType for pointers?

2006-03-22 Thread Hans-Peter Jansen
Am Mittwoch, 22. März 2006 14:19 schrieb Giovanni Bajo: > Jim Bublitz <[EMAIL PROTECTED]> wrote: > > Same as the following, except "%MappedType wchar_t" and other > > obvious changes. > > Many thanks Jim. For some reason, I had thought that %MappedType > wouldn't work for pointers... never mind! >

Re: [PyKDE] SIP: MappedType for pointers?

2006-03-22 Thread Giovanni Bajo
Phil Thompson <[EMAIL PROTECTED]> wrote: >> Python supports conversion to/from wchar_t buffers using >> PyUnicode_From/AsWideChar, but SIP does not support it. Could this be added >> automatically? > > This is similar to the size_t issue. While I can understand the technical issues with size_t (w

Re: [PyKDE] SIP: adding code to methods?

2006-03-22 Thread Giovanni Bajo
Phil Thompson <[EMAIL PROTECTED]> wrote: >> - I was thinking of defining a common utility function with %TypeCode, and >> then calling it for each method. How can I define C++ code which is >> executed after the method invokation? I don't want to use %MethodCode >> because I don't want to rewrite

[PyKDE] SIP: /Array/ and memory deallocation

2006-03-22 Thread Giovanni Bajo
Hello, I have an API like this: class Foo { public: Foo(char *filename); Foo(char *buffer, int size); [...] }; To make both construction forms work, I have wrapped the second constructor as a staticmethod factory, using /Array/ and /ArraySize/ (this is because overload resolution can

Re: [PyKDE] PyQt4 uic bug

2006-03-22 Thread Phil Thompson
On Tuesday 21 March 2006 4:00 pm, Eric Gach wrote: > Hi, > > There seems to be a problem with pyuic4 and generating the code when > using QDockWidget. There's a setting that can be seen in the Qt Designer > for QDockWidget that is called "docked". This isn't documented in the Qt > documentation for

Re: [PyKDE] SIP: MappedType for pointers?

2006-03-22 Thread Giovanni Bajo
Jim Bublitz <[EMAIL PROTECTED]> wrote: > Same as the following, except "%MappedType wchar_t" and other obvious > changes. Many thanks Jim. For some reason, I had thought that %MappedType wouldn't work for pointers... never mind! > if (!sipCpp) > Py_INCREF (Py_None); > return

Re: [PyKDE] Sugestions for PyQt4

2006-03-22 Thread Giovanni Bajo
Eric Jardim <[EMAIL PROTECTED]> wrote: >> How do you plan to modify pyuic4 so to infer the context without a preceding >> >> "self."? It's going to be non-trivial. > > > There is no need to change pyuic4 to get the context. We just have to query > the Python stack to know in which class we are cal

Re: [PyKDE] Re: How to embed Python in C++

2006-03-22 Thread Phil Thompson
On Wednesday 22 March 2006 10:56 am, Eric Jardim wrote: > 2006/3/21, Eric Jardim <[EMAIL PROTECTED]>: > > How do I embed Python script in C++? > > C'mon folks... > > How do I convert a "PyObject*" to a "QWidget*" returned from a function > like "PyRun_String()"? sipForceConvertToInstance() and rel

[PyKDE] Re: How to embed Python in C++

2006-03-22 Thread Eric Jardim
2006/3/21, Eric Jardim <[EMAIL PROTECTED]>: How do I embed Python script in C++? C'mon folks... How do I convert a "PyObject*" to a "QWidget*" returned from a function like "PyRun_String()"? Thanks, -- Eric Jardim ___ PyKDE mailing listPyKDE@mats.

Re: Fwd: Fwd: [PyKDE] Qt objects subclasses and __dict__ copies

2006-03-22 Thread Andreas Pakulat
On 22.03.06 04:38:52, Daniele Varrazzo wrote: > On 3/22/06, Phil Thompson <[EMAIL PROTECTED]> wrote: > > On Tuesday 21 March 2006 10:32 pm, Daniele Varrazzo wrote: > > > On a related topic, Edward Loper reported: > > > > > > Original Message > > > Subject: Introspection of qt clas

Re: [PyKDE] removing an item from a QListView

2006-03-22 Thread Phil Thompson
On Monday 20 March 2006 10:00 pm, Peter J. Bismuti wrote: > The documentation says to "delete" a QListViewItem and not use the obsolete > method "removeItem". How is this done in PyQt? See the PyQt QListViewItem documentation. Phil ___ PyKDE mailing l

[PyKDE] removing an item from a QListView

2006-03-22 Thread Peter J. Bismuti
The documentation says to "delete" a QListViewItem and not use the obsolete method "removeItem". How is this done in PyQt? Thanks ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

[PyKDE] Introspection of qt classes

2006-03-22 Thread Edward Loper
It appears that all classes in the Python "qt" module lie about what module they come from: >>> import qt >>> qt.QUrl.__module__ '__main__' As a result, programs that use introspection to learn about them can get confused. In particular, if the following module is given to epydoc [1], then i

[PyKDE] pixmap trouble

2006-03-22 Thread Jürgen Urner
Well, new to linux, new to KDE and new to pyQt. Had quite an easy port from micros~1 , not much of a hassle indeed. So, here I am and the first thing to make me scratch my head is this: The GUI below is supposed to grab a portion from the screen, display it in the client area adding a strin

[PyKDE] PyQt4 uic bug

2006-03-22 Thread Eric Gach
Hi, There seems to be a problem with pyuic4 and generating the code when using QDockWidget. There's a setting that can be seen in the Qt Designer for QDockWidget that is called "docked". This isn't documented in the Qt documentation for QDockWidget, which is why it gave me so much trouble. :)