Re: [PyQt] PyQt4.QtGui + uuid.uuid4() = segfault

2010-12-09 Thread Christopher Singley
Sorry, I spoke too fast. The issue persists on my system: Python 2.7.1 (r271:86832, Dec 1 2010, 23:37:45) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from PyQt4 import QtCore, QtGui >>> QtCore.PYQT_VERSION_STR '4.8.1' >>> import uuid >>> uuid.

Re: [PyQt] PyQt4.QtGui + uuid.uuid4() = segfault

2010-12-09 Thread Christopher Singley
I upgraded to PyQt4 v4.8.1, and the issue went away. Most odd... On Thu, Dec 9, 2010 at 9:32 PM, Mike Ramirez wrote: > On Thursday, December 09, 2010 06:56:18 pm Christopher Singley wrote: > >> I'm using PyQt4 v4.7.3. Check this out: > >> > >> Python 2.7.1 (r271:86832, Dec 1 2010, 23:37:45) > >>

[PyQt] bug: QProcessEnvironment insert failing

2010-12-09 Thread Scott Ballard
I ran across the following bug tonight: The insert method of QProcessEnvironment overwrites the environment variable instead of inserting into it. === Example === from PyQt4 import QtCore env = QtCore.QProcessEnvironment.systemEnvironment() print env.value('PATH') >>C:\WINDOWS\system32;C:\WINDOW

Re: [PyQt] PyQt4.QtGui + uuid.uuid4() = segfault

2010-12-09 Thread Mike Ramirez
On Thursday, December 09, 2010 06:56:18 pm Christopher Singley wrote: > I'm using PyQt4 v4.7.3. Check this out: > > Python 2.7.1 (r271:86832, Dec 1 2010, 23:37:45) > [GCC 4.4.5] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > > >>> from PyQt4 import QtGui >

[PyQt] PyQt4.QtGui + uuid.uuid4() = segfault

2010-12-09 Thread Christopher Singley
I'm using PyQt4 v4.7.3. Check this out: Python 2.7.1 (r271:86832, Dec 1 2010, 23:37:45) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from PyQt4 import QtGui >>> import uuid >>> uuid.uuid4() Segmentation fault If I import uuid before QtGui, tho

Re: [PyQt] Getting around Circualr references in SIP modules

2010-12-09 Thread Nate Reid
> Date: Thu, 9 Dec 2010 22:33:26 + > From: p...@riverbankcomputing.com > To: gnat...@hotmail.com > CC: pyqt@riverbankcomputing.com > Subject: Re: [PyQt] Getting around Circualr references in SIP modules > > On Thu, 9 Dec 2010 14:17:31 -0800, Nate Reid wrote: > > I am wrapping a set of comp

Re: [PyQt] Getting around Circualr references in SIP modules

2010-12-09 Thread Phil Thompson
On Thu, 9 Dec 2010 14:17:31 -0800, Nate Reid wrote: > I am wrapping a set of components that are generally independent of each > other, but not always. > > For example, I have > /// > // foo module > %Module foo > %Import common.sip // Need to get a Blah > %Include SomeClass.sip > > Blah* ge

[PyQt] Getting around Circualr references in SIP modules

2010-12-09 Thread Nate Reid
I am wrapping a set of components that are generally independent of each other, but not always. For example, I have /// // foo module %Module foo %Import common.sip // Need to get a Blah %Include SomeClass.sip Blah* getTheBlah(); %MethodCode sipRes = ... %End /// // SomeClass.sip c

Re: [PyQt] PyQt metrics

2010-12-09 Thread Phil Thompson
On Thu, 9 Dec 2010 22:31:38 +0100, "Hans-Peter Jansen" wrote: > On Thursday 09 December 2010, 19:46:26 Baz Walter wrote: >> On 09/12/10 17:40, Hans-Peter Jansen wrote: >> > Hi Phil, hi *, >> > >> > ever wanted to know, how many classes and methods PyQt4 provides? >> > >> > I'm not sure, if my calc

Re: [PyQt] PyQt metrics

2010-12-09 Thread Hans-Peter Jansen
On Thursday 09 December 2010, 19:46:26 Baz Walter wrote: > On 09/12/10 17:40, Hans-Peter Jansen wrote: > > Hi Phil, hi *, > > > > ever wanted to know, how many classes and methods PyQt4 provides? > > > > I'm not sure, if my calculations are valid, but according to my Q&D > > script (attached), they

Re: [PyQt] Switching languages dynamically example

2010-12-09 Thread Hans-Peter Jansen
Dear Giovanni, On Wednesday 08 December 2010, 16:27:12 Giovanni Bajo wrote: > On mer, 2010-12-08 at 15:26 +0100, Hans-Peter Jansen wrote: > > Hi, > > > > I found a Qt example of switching languages dynamically here: > > > > http://www.qtcentre.org/wiki/index.php?title=Dynamic_translation_in_Qt4_

Re: [PyQt] Remove resize arrow

2010-12-09 Thread Hans-Peter Jansen
On Thursday 09 December 2010, 20:33:47 Hugo Leveille wrote: > I have a mainwindow that I would like to remove the resize handle > on the bottom right so that the window is not resizable. self.statusBar().setSizeGripEnabled(False) but that might not sufficient. Check out the widgets/win

Re: [PyQt] compile flags propagation WAS: RE: PyQt snapshot debug info

2010-12-09 Thread Hans-Peter Jansen
On Thursday 09 December 2010, 17:49:25 Phil Thompson wrote: > On Wed, 8 Dec 2010 13:41:42 +0100, "Hans-Peter Jansen" > > > > export CXXFLAGS="$RPM_OPT_FLAGS" > > export CFLAGS="$RPM_OPT_FLAGS" > > What affect will these have? None, unfortunately. I've just tried with the QMAKE_* variants, but tha

Re: [PyQt] Remove resize arrow

2010-12-09 Thread Baz Walter
On 09/12/10 19:33, Hugo Leveille wrote: I have a mainwindow that I would like to remove the resize handle on the bottom right so that the window is not resizable. you can remove the resize handle with: mainwindow.statusBar().setSizeGripEnabled(False) but that won't make the window unresi

[PyQt] Remove resize arrow

2010-12-09 Thread Hugo Leveille
I have a mainwindow that I would like to remove the resize handle on the bottom right so that the window is not resizable. -- Hugo Leveille Compositing TD Vision Globale hu...@fastmail.net Sent from my iPhone ___ PyQt mailing listPyQt@riverbankco

Re: [PyQt] Bug in QFileDialog

2010-12-09 Thread Baz Walter
On 09/12/10 18:57, Vicent Mas wrote: (I've lost a great opportunity for writing C++ code. That's a pitty ;-) be thankful for small mercies :-) ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Bug in QFileDialog

2010-12-09 Thread Vicent Mas
On 2010-12-09 Baz Walter said: > On 09/12/10 18:01, Vicent Mas wrote: > > On 2010-12-09 Baz Walter said: > >>> but it means that there is still a bug: in the doItWrong function of my > >>> script the setFileMode call doesn't reset the FileName label to a > >>> default value. So it seems that I'l

Re: [PyQt] PyQt metrics

2010-12-09 Thread Baz Walter
On 09/12/10 17:40, Hans-Peter Jansen wrote: Hi Phil, hi *, ever wanted to know, how many classes and methods PyQt4 provides? I'm not sure, if my calculations are valid, but according to my Q&D script (attached), they are: Metric(name: PyQt4.phonon, modules: 1, classes: 52, methods: 2274, funct

Re: [PyQt] Bug in QFileDialog

2010-12-09 Thread Baz Walter
On 09/12/10 18:01, Vicent Mas wrote: On 2010-12-09 Baz Walter said: but it means that there is still a bug: in the doItWrong function of my script the setFileMode call doesn't reset the FileName label to a default value. So it seems that I'll end writing my first C++ code (using Antonio's code

Re: [PyQt] Bug in QFileDialog

2010-12-09 Thread Vicent Mas
On 2010-12-09 Baz Walter said: > On 09/12/10 06:55, Vicent Mas wrote: > > On 2010-12-08 "Hans-Peter Jansen" said: > >> [...] > >> > >> Vicent, bad luck: check the fileMode paragraph a couple of lines below: > >> > >> http://doc.trolltech.com/latest/qfiledialog.html#FileMode-enum > >> > >> Thi

Re: [PyQt] Bug in QFileDialog

2010-12-09 Thread Baz Walter
On 09/12/10 06:55, Vicent Mas wrote: On 2010-12-08 "Hans-Peter Jansen" said: [...] Vicent, bad luck: check the fileMode paragraph a couple of lines below: http://doc.trolltech.com/latest/qfiledialog.html#FileMode-enum This function will set the labels for the FileName and Accept DialogLabel

[PyQt] PyQt metrics

2010-12-09 Thread Hans-Peter Jansen
Hi Phil, hi *, ever wanted to know, how many classes and methods PyQt4 provides? I'm not sure, if my calculations are valid, but according to my Q&D script (attached), they are: Metric(name: PyQt4.phonon, modules: 1, classes: 52, methods: 2274, functions: 0) Metric(name: PyQt4.Qsci, modules: 1,

Re: [PyQt] compile flags propagation WAS: RE: PyQt snapshot debug info

2010-12-09 Thread Phil Thompson
On Wed, 8 Dec 2010 13:41:42 +0100, "Hans-Peter Jansen" wrote: > On Tuesday 07 December 2010, 20:41:42 Hans-Peter Jansen wrote: >> On Tuesday 07 December 2010, 18:21:16 Phil Thompson wrote: >> > On Mon, 6 Dec 2010 21:57:15 +0100, "Hans-Peter Jansen" >> > >> > >> > >PyQt-x11-gpl-snapshot-4.8.2-24a6

Re: [PyQt] Problem with QFileSystemWatcher

2010-12-09 Thread Baz Walter
On 09/12/10 12:26, NARCISO, Rui wrote: Hi all I can't seem to be able to make QFileSYstemWatcher work with a file (to see if it's contents change). At the end of this mail you'll find a minimum example that doesn't worked. I tried several connections with different syntaxes but nothing works.

[PyQt] Problem with QFileSystemWatcher

2010-12-09 Thread NARCISO, Rui
Hi all I can't seem to be able to make QFileSYstemWatcher work with a file (to see if it's contents change). At the end of this mail you'll find a minimum example that doesn't worked. I tried several connections with different syntaxes but nothing works. The versions I have: Linux Red Ha