Re: [PyQt] Writing user defined function in the existing application

2010-03-11 Thread Nick Gaens
Yes, take a look at the resizeEvent(event) method: http://doc.trolltech.com/4.6/qwidget.html#resizeEvent http://doc.trolltech.com/4.6/qwidget.html#resizeEvent:-) Nick On Thu, Mar 11, 2010 at 8:19 AM, sindhuja venkat sindhujaven...@gmail.comwrote: Hello all, We can modify the close event and

[PyQt] Qpainter doesn't draw anything under Windows. Linux is fine.

2010-03-11 Thread Василий Чинарёв
I want to update a pixmap on single click, so I tried this: import sys from PyQt4 import QtGui,QtCore class myLabel(QtGui.QLabel): def __init__(self,*args,**kwargs): QtGui.QLabel.__init__(self,*args,**kwargs) self.painter = QtGui.QPainter() def mousePressEvent(self,

Re: [PyQt] pyqtconfig.sipconfig._config_stack has wrong paths

2010-03-11 Thread Josh
Phil Thompson wrote: On Wed, 10 Mar 2010 16:49:13 -0500, Josh jk...@irobot.com wrote: Hi, In my dev environment we build packages of Qt, PyQt, SIP, etc on a central build machine. Developers use these packages as dependencies for their projects on their own machines. The packages are

Re: [PyQt] pyqtconfig.sipconfig._config_stack has w rong paths

2010-03-11 Thread Phil Thompson
On Thu, 11 Mar 2010 09:13:27 -0500, Josh jk...@irobot.com wrote: Phil Thompson wrote: On Wed, 10 Mar 2010 16:49:13 -0500, Josh jk...@irobot.com wrote: Hi, In my dev environment we build packages of Qt, PyQt, SIP, etc on a central build machine. Developers use these packages as

Re: [PyQt] Getting a segfault when I close my program

2010-03-11 Thread dizou
Anyone have an idea? -- View this message in context: http://old.nabble.com/Getting-a-segfault-when-I-close-my-program-tp27799395p27864940.html Sent from the PyQt mailing list archive at Nabble.com. ___ PyQt mailing list

Re: [PyQt] pyqtconfig.sipconfig._config_stack has wrong paths

2010-03-11 Thread Josh
Phil Thompson wrote: On Thu, 11 Mar 2010 09:13:27 -0500, Josh jk...@irobot.com wrote: Phil Thompson wrote: On Wed, 10 Mar 2010 16:49:13 -0500, Josh jk...@irobot.com wrote: Hi, In my dev environment we build packages of Qt, PyQt, SIP, etc on a central build machine.

Re: [PyQt] Getting a segfault when I close my program

2010-03-11 Thread Russell Valentine
dizou wrote: Anyone have an idea? More info needed. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Getting a segfault when I close my program

2010-03-11 Thread Yao Ko
On Thu, Mar 11, 2010 at 7:24 AM, dizou di_...@yahoo.com wrote: Anyone have an idea? -- View this message in context: http://old.nabble.com/Getting-a-segfault-when-I-close-my-program-tp27799395p27864940.html Sent from the PyQt mailing list archive at Nabble.com. Hi, I tried to reproduce

Re: [PyQt] Getting a segfault when I close my program

2010-03-11 Thread dizou
Yao Ko-2 wrote: Hi, I tried to reproduce the problem, but the code is missing definition for self.tree and self.view? Yao This is what I have at the beginning of the MainWidget.__init__() function: self.tree = TreeArea(self) self.display = DisplayScene(self) self.view =

Re: [PyQt] Getting a segfault when I close my program

2010-03-11 Thread dizou
This code will recreate the problem: Main.py: #!/usr/bin/env python import sys from PyQt4 import QtGui from MainWindow import * app = QtGui.QApplication(sys.argv) widget = MainWindow() widget.resize(250, 150) widget.show() sys.exit(app.exec_()) MainWindow.py: #!/usr/bin/env python from

Re: [PyQt] Getting a segfault when I close my program

2010-03-11 Thread dizou
If I take out the line: treeControlLayout.addItem(self.rightSpacer, 0, 8) or viewControlLayout.addItem(self.rightSpacer, 0, 8) I don't get the segfault anymore. So I can't have both of those lines of code in. -- View this message in context:

Re: [PyQt] Getting a segfault when I close my program

2010-03-11 Thread Darryl Wallace
Hello, -Original Message- From: pyqt-boun...@riverbankcomputing.com [mailto:pyqt-boun...@riverbankcomputing.com] On Behalf Of dizou Sent: March-11-10 2:54 PM To: pyqt@riverbankcomputing.com Subject: Re: [PyQt] Getting a segfault when I close my program If I take out the line:

Re: [PyQt] Getting a segfault when I close my program

2010-03-11 Thread dizou
Darryl Wallace wrote: I believe it's because you can't have the self.rightSpacer object in two different places. My guess is you're getting the segfault because when the first layout is destroyed it cleans up the self.rightSpacer. Then when the second layout is destroyed it's trying to

Re: [PyQt] Problems using PyQt 4.7 and py2exe

2010-03-11 Thread Albert Cervera i Areny
A Dijous, 4 de febrer de 2010, Albert Cervera i Areny va escriure: If I create the installer for my application using py2exe and PyQt 4.7, the application starts but fails with the following exception with QtWebKit: ImportError: DLL load failed: Can not find find the specified module. The