[PyQt] QTreeWidget.takeChild Segfaults

2007-07-16 Thread Jan Kaluza
Hi, i'm trying to remove some subitems from one of my item in QTreeWidget, but on _some_ machines it segfaults. Does anybody know, if is something wrong in this code? def on_DeleteContact(self,jid): # delete contact from roster log.msg("delete contact") items=self.findIte

Re: [PyQt] Need Help Wrapping WebKit

2007-07-16 Thread Rob Knapp
> On Sat, 14 Jul 2007 07:15:29 -0400, Rob Knapp wrote: > > > But, now I've hit my first snag. I'm trying to wrap WebKitQt up for use in > > the project, and following the example at riverbankcompting.com/Docs, > > (which looks like it was written for qt3, since > > I couldn't find qt/qtmod.sip

Re: [PyQt] Need Help Wrapping WebKit

2007-07-16 Thread Rob Knapp
> On Sat, 14 Jul 2007 07:15:29 -0400, Rob Knapp wrote: > > > But, now I've hit my first snag. I'm trying to wrap WebKitQt up for use in > > the project, and following the example at riverbankcompting.com/Docs, > > (which looks like it was written for qt3, since > > I couldn't find qt/qtmod.sip

Re: [PyQt] Newbie questions: Tray system and other stuff...

2007-07-16 Thread David Boddie
On Saturday 14 July 2007 02:37:26 -0300, Gustavo A. Dí­az wrote: > I am new on this list, and new in the progamming world. Welcome to both of these places! > I've started to develop an app. (OpenCoffee, > http://opencoffee.lnxteam.org) using PyQT. > I am newbie, but i am doing my homework and re

Re: [PyQt] Need Help Wrapping WebKit

2007-07-16 Thread David Boddie
On Sat, 14 Jul 2007 07:15:29 -0400, Rob Knapp wrote: > But, now I've hit my first snag.  I'm trying to wrap WebKitQt up for use in > the project, and following the example at riverbankcompting.com/Docs, > (which looks like it was written for qt3, since > I couldn't find qt/qtmod.sip) I > have

Re: [PyQt] QLabel is visible but isVisible() is always false

2007-07-16 Thread Andreas Pakulat
On 16.07.07 19:35:55, Katja Wegner wrote: > sorry, didn't know that. Well, thats not really a working example (broken indentation and 2 self-errors). Anyway, the reson isVisible() returns false is simply that the dialog is not visible. isVisible() is not purely influenced by the flag you set via s

Re: [PyQt] Using functools.partial objects as slots.

2007-07-16 Thread Martin Blais
On 7/14/07, Phil Thompson <[EMAIL PROTECTED]> wrote: > At the moment only lambda is treated specially. I either need to make > partials special as well, or bite the bullet and always increment the > reference count of the slot. Tonight's SIP snapshot should allow partials to be used as slots wit

Re: [PyQt] QLabel is visible but isVisible() is always false

2007-07-16 Thread Katja Wegner
sorry, didn't know that. import sys from PyQt4.QtGui import * class Window(QMainWindow): def __init__(self, parent): QMainWindow.__init__(self) gen = General(self) gen.addLabel() gen.update(1) gen.show() class General(QDialog): def __init__(self, pa

Re: [PyQt] button color

2007-07-16 Thread David Boddie
On Mon Jul 16 18:49:21 BST 2007, Katja Wegner wrote: > thanks for the fast answer. I checked the returned colors and all alpha > values are 255, thus no semi-transparent colors. I think I was confused about that as well, but that's another issue. :-/ > I checked it in my program, again: > linux

Re: [PyQt] QLabel is visible but isVisible() is always false

2007-07-16 Thread Andreas Pakulat
On 16.07.07 18:05:28, Katja Wegner wrote: > First the objects are created with visible = false: Thats not a minimal example code that demonstrates the problem. You're supposed to post code that can be taken put into a .py file and then runs. Often by reducing your code you find a mistake you overl

Re: [PyQt] QLabel is visible but isVisible() is always false

2007-07-16 Thread Katja Wegner
First the objects are created with visible = false: self.labelModuleArcs = QLabel("\nArc types in the module:") self.labelModuleArcs.setVisible(FALSE) And after a while the dialog is updated (in another method but in the same class) and the label is shown but the print says false: if object.i

Re: [PyQt] Make --qsci-api really optional

2007-07-16 Thread Matteo Bertini
On Monday 16 July 2007 4:38 pm, Matteo Bertini wrote: Hello, I've found that there is almost no way to explicitly exclude the qsci-api installation. If one provide no option, but configure.py finds a default dir (quite common under linux) it tries to install apis there. I suggest to activ

Re: [PyQt] Make --qsci-api really optional

2007-07-16 Thread Phil Thompson
On Monday 16 July 2007 4:38 pm, Matteo Bertini wrote: > Hello, > > I've found that there is almost no way to explicitly exclude the > qsci-api installation. > > If one provide no option, but configure.py finds a default dir (quite > common under linux) it tries to install apis there. > > I suggest

[PyQt] Make --qsci-api really optional

2007-07-16 Thread Matteo Bertini
Hello, I've found that there is almost no way to explicitly exclude the qsci-api installation. If one provide no option, but configure.py finds a default dir (quite common under linux) it tries to install apis there. I suggest to activate the install in the default dir only if --qsci-api i

[PyQt] Disable installation of SIP files for static libraries

2007-07-16 Thread Giovanni Bajo
Hello, if Qt is built as a static library, there's no need to install the .SIP files of PyQt because it will not be possible to build a derived library anyway. This patch disables installation of SIP files in such a condition. -- Giovanni Bajo --- configure.py.old2007-07-16 04:44:13.

[PyQt] Re: Crash with shortcircuit signals

2007-07-16 Thread Giovanni Bajo
On 7/16/2007 2:36 PM, Phil Thompson wrote: On Tuesday 10 July 2007 5:42 pm, Giovanni Bajo wrote: Hi Phil, a little crasher: == from PyQt4.QtCore import * app = QCoreApplication([]) for i in range(300): print i w1 = QObject(None) w2 =

[PyQt] Re: Crash with shortcircuit signals

2007-07-16 Thread Phil Thompson
On Tuesday 10 July 2007 5:42 pm, Giovanni Bajo wrote: > Hi Phil, > > a little crasher: > > == > from PyQt4.QtCore import * > > app = QCoreApplication([]) > for i in range(300): > print i > w1 = QObject(None) > w2 = QObject(None) > prin

[PyQt] Question about QGraphics

2007-07-16 Thread Hernán Rajchert
Hi, im trying to make a simple app that displays an image and im having some trouble with QGraphics, the problem is that the "changes" i make are not displayed unless i create an error, for example calling a function of the QGraphicsView with wrong parameters. This is the code that has some troub