Re: [PyQt] Error while running PyQt programs

2010-08-20 Thread Algis Kabaila
On Saturday 21 August 2010 01:08:30 Vikas Mahajan wrote: > Hello to all. > I have compiled python-2.6.5, qt-4.6.3 and PyQt-x11-gpl-4.7.4 on my > RHEL5 linux machine. I am trying to run any PyQt program, program > exists with Error: "Segmentation fault". > Please tell me the reason of this error and

Re: [PyQt] QDockwidget advice needed

2010-08-20 Thread Algis Kabaila
> Not exactly, but who cares. AFAICS, all you need is the Signals and Slots > chapter. Unfortunately, it misses the new style signals (because Phil > invented them later), but you should get hold of them from the beginning. > Much less to type, better type checking, and no silly Qt types anymor

[PyQt] Error while running PyQt programs

2010-08-20 Thread Vikas Mahajan
Hello to all. I have compiled python-2.6.5, qt-4.6.3 and PyQt-x11-gpl-4.7.4 on my RHEL5 linux machine. I am trying to run any PyQt program, program exists with Error: "Segmentation fault". Please tell me the reason of this error and how can I overcome from this error. Thanks. Below is the content

Re: [PyQt] Pixel Manipulation Very Slow?

2010-08-20 Thread Dan Halbert
Also see whether PIL, the Python Imaging Library (http://www.pythonware.com/products/pil/index.htm) will do what you want. It has a number of image-manipulation primitives which are coded in C at the low level. It also has pixel get/put, but that would probably not be significantly faster. D

Re: [PyQt] Pixel Manipulation Very Slow?

2010-08-20 Thread Henning Schröder
On Fri, Aug 20, 2010 at 12:21 PM, zhang jian wrote: > Hello, > This is my first post. I want to write a simply app layering several images > each with different weighting. This problem is pixel manipulation by QImage > appears to be quite slow. The problem is that name look-ups take a lot of time

Re: [PyQt] Pixel Manipulation Very Slow?

2010-08-20 Thread Nick Gaens
Hello, First, you might want to change both range()-methods in the for-loops to * xrange()*, since the latter is way faster. Anyway, to recognize which calls are slowing down your calculations, try to profile your application (using e.g. valgrind). In an ultimate case, when in need of some serio

Re: [PyQt] Pixel Manipulation Very Slow?

2010-08-20 Thread Jeremy Sanders
zhang jian wrote: > Just one image changed in red channel. It took about 5 seconds to redraw a > 1280 X 720 image any time I changed Kd. Far from interactive. I'd like to > know is there any way to do stuff like that faster? Or calculating a > million pixels in PyQt is just a bad idea? Any advice

[PyQt] Pixel Manipulation Very Slow?

2010-08-20 Thread zhang jian
Hello, This is my first post. I want to write a simply app layering several images each with different weighting. This problem is pixel manipulation by QImage appears to be quite slow. My code is: w = image.width() h = image.height() for j in range(h): for i i

Re: [PyQt] Building PyQt 4.7.4 with Qt 4.5.3 and Visual Studio 2005

2010-08-20 Thread Virgil Dupras
On Fri, Aug 20, 2010 at 1:21 PM, Virgil Dupras wrote: > On Fri, Aug 20, 2010 at 1:17 PM, Jiacun wu wrote: >> >> Hi, >> >> >> >> I have successfully built and installed release SIP 4.10.5 for Python 2.6.5 >> with MS VS 2005 on Windows XP. In my computer, Qt 4.5.3, which was built >> from open so

Re: [PyQt] Building PyQt 4.7.4 with Qt 4.5.3 and Visual Studio 2005

2010-08-20 Thread Virgil Dupras
On Fri, Aug 20, 2010 at 1:17 PM, Jiacun wu wrote: > > Hi, > > > > I have successfully built and installed release SIP 4.10.5 for Python 2.6.5 > with MS VS 2005 on Windows XP. In my computer, Qt 4.5.3, which was built from > open source with VS 2005, has already been installed. > > > > However, n

[PyQt] Building PyQt 4.7.4 with Qt 4.5.3 and Visual Studio 2005

2010-08-20 Thread Jiacun wu
Hi,   I have successfully built and installed release SIP 4.10.5 for Python 2.6.5 with MS VS 2005 on Windows XP. In my computer, Qt 4.5.3, which was built from open source with VS 2005, has already been installed.   However, now I am also trying to build the released source PyQt-win-gpl-4.7.4,

Re: [PyQt] Exceptions and stack frames

2010-08-20 Thread Jeremy Sanders
Phil Thompson wrote: > Isn't this the normal behaviour? The stack frame is part of the traceback > of the exception. It will stay around until it is replaced by another > exception. > > If you add a second button to the first dialog that also raises an > exception, you should see that the __del__

Re: [PyQt] Exceptions and stack frames

2010-08-20 Thread Phil Thompson
On Thu, 19 Aug 2010 20:48:46 +0100, Jeremy Sanders wrote: > I have a problem with stack frames hanging around after exceptions in PyQt > objects. > > A particular method on a PyQt object is connected to a signal. This method > is called because of the signal is raised. > > If I get an uncaught

Re: [PyQt] Relative imports in compiled UI files?

2010-08-20 Thread Virgil Dupras
On Fri, Aug 20, 2010 at 8:45 AM, Virgil Dupras wrote: > On Thu, Aug 19, 2010 at 1:23 PM, Phil Thompson > wrote: >> On Tue, 17 Aug 2010 16:06:07 +0200, Virgil Dupras >> wrote: >>> I recently ported one of my apps to Python 3, and one of the headaches >>> I had was because import statements in com