Re: [PyQt] PyQt4 Python File Object to QFile

2010-02-15 Thread Russell Valentine
Russell Valentine wrote: I wonder if anyone ever bridged the gap between QFile and the Python File Object? It could be handy sometimes to go between the two. .. How about for example if I wanted to open a file from a zip file. zfile = zipfile.ZipFile("test.zip") f=zfile.open("some.png", 'r'

[PyQt] pyqt4 problem with label.setText timing within loops

2010-02-15 Thread Dan Cherry
I'm trying to run a simple 'for' loop to execute some external programs (ripping tracks with cdparanoia/lame, but I've stripped the problem down to bare essentials that demonstrate the problem). Each loop should update a gui label with the current loop number. The setText statement is within t

Re: [PyQt] debian/kubuntu patches to PyQt

2010-02-15 Thread Phil Thompson
On Mon, 15 Feb 2010 09:05:43 +, Jonathan Riddell wrote: > I like to keep upstreams informed of patches we include It is appreciated. > so here's the > ones for PyQt4 > http://people.canonical.com/~jriddell/pyqt4/ > > debian_configure_changes.diff > We don't include the pyuic4 link Why no

Re: [PyQt] QtGui.QColor.fromRgb()

2010-02-15 Thread Phil Thompson
On Mon, 15 Feb 2010 17:19:16 -0600, Aron Bierbaum wrote: > I have attached a test that shows a possible regression in > QtGui.QColor.fromRgb() PyQt 4.7. In past releases we have been able to > get the color the grid lines in a table from the current style and > convert it to a QColor. For some rea

Re: [PyQt] Qt include files on Windows

2010-02-15 Thread Phil Thompson
On Mon, 15 Feb 2010 17:22:43 + (GMT), Jeremy Sanders wrote: > Hi - I see that the Windows PyQt development binaries available don't seem > to include the Qt header files. These are necessary to compile PyQt > Qt/SIP extension modules. > > Would it be sensible to included these in the distribu

[PyQt] QtGui.QColor.fromRgb()

2010-02-15 Thread Aron Bierbaum
I have attached a test that shows a possible regression in QtGui.QColor.fromRgb() PyQt 4.7. In past releases we have been able to get the color the grid lines in a table from the current style and convert it to a QColor. For some reason PyQt raises a TypeError exception: Raw color: -2565928 Traceb

[PyQt] -c configure option

2010-02-15 Thread Mitchell L Model
The PyQt configuration documentation (http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/pyqt4ref.html#configuring-pyqt ) includes the following option: "-c, --concatenate The C++ source files for a Python module will be concatenated. This results in significantly reduced compilation times

[PyQt] Qt include files on Windows

2010-02-15 Thread Jeremy Sanders
Hi - I see that the Windows PyQt development binaries available don't seem to include the Qt header files. These are necessary to compile PyQt Qt/SIP extension modules. Would it be sensible to included these in the distribution, or in an extra file? Are further files be required to build extensi

Re: [PyQt] MemoryError: can I use more?

2010-02-15 Thread Echavarria Gregory, Maria Angelica
Thanks very much Scott, I have managed to keep my memory footprint somehow low by storing in disk my list structures and subdividing long, memory-consuming chains of calculations, but still, memory will be the limitation of my application... As you say, the compilation in 64 bit can be troubles

[PyQt] Windows PyQt binaries

2010-02-15 Thread Jeremy Sanders
Hi - I see that the Windows PyQt development binaries available don't seem to include the Qt header files. These are necessary to compile PyQt extension modules. Would it be sensible to included these in the distribution, or in an extra file, or would further files be required to build extensio

[PyQt] New PyQt APIs

2010-02-15 Thread Martin Teichmann
Hi List, I just browsed through the documentation of the new signal system and also for the pythonized APIs for QString and alike. They're great, since this will make programming PyQt4 much more straight forward and especially more pythonic. There are, however, some oddities I think, which I woul

[PyQt] help with printing

2010-02-15 Thread NISA BALAKRISHNAN
hi, I would like to know how to print a .xls file using pyqt. I would like to see a preview of the file and then print. I tried to use Qprinter and printpreview dialogs but not successful. Pls send me links showing examples of using printers. I get a insufficient no of arguments error. thanx in a

Re: [PyQt] double free issue with OUT-argument

2010-02-15 Thread Phil Thompson
On Sat, 13 Feb 2010 18:34:58 +0100, "Diez B. Roggisch" wrote: > Hi, > > wrapping happily away a 3D-engine, I encounter the following problem: > > >>> import irrlicht > >>> core = irrlicht.irr.core > >>> q = core.quaternion() > >>> q.toEuler() > python(3701) malloc: *** error for object 0x474

[PyQt] debian/kubuntu patches to PyQt

2010-02-15 Thread Jonathan Riddell
I like to keep upstreams informed of patches we include so here's the ones for PyQt4 http://people.canonical.com/~jriddell/pyqt4/ debian_configure_changes.diff We don't include the pyuic4 link fix_objdir_dbus_check.diff Needed for builddir!=srcdir kubuntu_01_fix_uic.diff fix the ui compiler

Re: [PyQt] MemoryError: can I use more?

2010-02-15 Thread Scott Ballard
I should have mentioned that I believe you need to run Python and PyQt compiled for 64 bit to use the extra memory. Maybe a wiser computer user can chime in on this one!?? It sounds like the 32bit emulation is running into the same memory limitation on the 64bit machine as the 32 bit machine. T

Re: [PyQt] MemoryError: can I use more?

2010-02-15 Thread Echavarria Gregory, Maria Angelica
Scott, Thanks for the tip of the 0.5GB more... I'm googling it! that might be all I need... Just to let you know that one of the machines I tested my app in is 64 bit and happened the same. The RAM consumed by the OS and other processes is already included in the 2.2 I'm telling... my app ente

Re: [PyQt] addAction to menubar

2010-02-15 Thread Colin McPhail
On 13 Feb 2010, at 23:50, David Arnold wrote: > Hi, > > I'm trying some of the zetcode tutorials. How come no menu item shows up on > my Macbook when I execute the following? > For basic actions like quitting, Mac OS X likes all applications to present a standard user interface. When your m