Re: [PyQt] Calling slots in a QThread?

2009-08-13 Thread Arnold Krille
Hi, On Thursday 13 August 2009 00:15:13 Lukas Hetzenecker wrote: But If I call long-running funtions in a run() method everything works as expected. Are these long-running functions implemented in python? Otherwise they will release the GIL and your gui becomes snappy again. 2) Use

[PyQt] Mac OS-X 10.5 two icons bouncing in the dock problem

2009-08-13 Thread Hans-Peter Jansen
[Sorry for cross-posting] Hi, attached script demonstrates an ugly issue, I'm fighting with since a couple of days. Issue: when starting the app via double click, single click on dock icon, dropping a plain/text file on dock or application icon, all actions lead to two icons bouncing. The

RE: [PyQt] Documentation

2009-08-13 Thread Colin W.
This problem seems to be unresolved. Suppose that one downloads the documentation separately, where should it be installed? In other words, where does the Demo documentation expect to find it? Colin W. Peter Stewart-2 wrote: Yes, I appreciate that I have access to the online

Re: [PyQt] Calling slots in a QThread?

2009-08-13 Thread Lukas Hetzenecker
Am Donnerstag 13 August 2009 08:58:32 schrieb Arnold Krille: [...] Are these long-running functions implemented in python? Otherwise they will release the GIL and your gui becomes snappy again. Yes, they are in Python. I think it works now, attached a simple script for demonstration. Comments

[PyQt] Re: problem with createEditor method of QItemDelegate

2009-08-13 Thread Victor Noagbodji
Hello Julien, to fix it you have to set the contents margins on the layout object. so your code should look like this: qh = QtGui.QHBoxLayout( self ) qh.setContentsMargins(0, 0, 0, 0) self.qlabel = QtGui.QLabel() self.qlabel.setText( foobar )

[PyQt] Re: problem with createEditor method of QItemDelegate

2009-08-13 Thread TP
Victor Noagbodji wrote: Hello Julien, to fix it you have to set the contents margins on the layout object. so your code should look like this: qh = QtGui.QHBoxLayout( self ) qh.setContentsMargins(0, 0, 0, 0) self.qlabel = QtGui.QLabel()

Re: [PyQt] Collapse/expand frame

2009-08-13 Thread Scott Ballard
. http://www.eset.com __ Information from ESET NOD32 Antivirus, version of virus signature database 4332 (20090813) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com ___ PyQt mailing listPyQt

Re: [PyQt] Collapse/expand frame

2009-08-13 Thread Hans-Peter Jansen
Am Donnerstag, 13. August 2009 schrieb Scott Ballard: I'm really looking for a frame that has the collapse/expand ability built into it. See the image in the link. You can see the Texture Map submenu collapsed/expanded. Any thoughts? www.scottballard.net/collapsibleFrame.jpg I see - why

Re: [PyQt] inheriting from QObject and dbus.service.Object

2009-08-13 Thread Marcos Dione
On Wed, Aug 12, 2009 at 09:23:07AM +0100, Phil Thompson wrote: PyQt defines its own metaclass (as print type(QObject) demonstrates). here's the output: In [47]: print type(QObject) type 'PyQt4.QtCore.pyqtWrapperType' In [53]: QtCore.pyqtWrapperType AttributeError: 'module' object has no

Re: [PyQt] inheriting from QObject and dbus.service.Object

2009-08-13 Thread Phil Thompson
On Thu, 13 Aug 2009 17:12:52 +0200, Marcos Dione mdi...@grulic.org.ar wrote: On Wed, Aug 12, 2009 at 09:23:07AM +0100, Phil Thompson wrote: PyQt defines its own metaclass (as print type(QObject) demonstrates). here's the output: In [47]: print type(QObject) type

Re: [PyQt] Collapse/expand frame

2009-08-13 Thread Håvard Gulldahl
of virus signature database 4330 (20090812) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com __ Information from ESET NOD32 Antivirus, version of virus signature database 4332 (20090813) __ The message was checked by ESET NOD32 Antivirus

Re: [PyQt] Collapse/expand frame

2009-08-13 Thread Alexei Puzikov
__ Information from ESET NOD32 Antivirus, version of virus signature database 4332 (20090813) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com ___ PyQt mailing list    p...@riverbankcomputing.com http

[PyQt] lastQuery() from an QSqlRelationalTableModel

2009-08-13 Thread Scott Frankel
Hello, How can I view the last query submitted to an QSqlRelationalTableModel instance? I'm trying to debug a data-widget mapped form's submitAll() that is not storing one of it's mapped members. I've made numerous stabs at things like: theQuery =

Re: [PyQt] Collapse/expand frame

2009-08-13 Thread Alexei Puzikov
I'm really looking for a frame that has the collapse/expand ability built into it. See the image in the link. You can see the Texture Map submenu  collapsed/expanded. Any thoughts? www.scottballard.net/collapsibleFrame.jpg I see - why don't you BYO. This kind of widget is uncommon, and thus

Re: [PyQt] inheriting from QObject and dbus.service.Object

2009-08-13 Thread Marcos Dione
On Thu, Aug 13, 2009 at 09:59:30PM +0100, Phil Thompson wrote: On Thu, 13 Aug 2009 17:12:52 +0200, Marcos Dione mdi...@grulic.org.ar wrote: meanwhile the above method works (or so I've read): create a class inheriting from the 2 metaclasses and use it as the metaclass of the inheriting

Re: [PyQt] Collapse/expand frame

2009-08-13 Thread Scott Ballard
, version of virus signature database 4333 (20090813) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com __ Information from ESET NOD32 Antivirus, version of virus signature database 4333 (20090813) __ The message was checked by ESET NOD32

[PyQt] Adding a widget to a layout that belongs to a QGroupBox changes that widget's parent?

2009-08-13 Thread Nate Reid
I'm using PyQt 4.5.1 For some reason the parent is changing, but only when a QGroupBox is used... Another odd thing is that if I uncomment out the line self.layout.addWidget(self.box), it crashes (e.g. stalls out completely, and I have to kill the shell) Here is the sample script that produces