Re: [PyQt] Python 3 import error

2010-12-02 Thread Nathan Weston
On 12/2/2010 5:11 PM, Thorsten Kampe wrote: * Hans-Peter Jansen (Thu, 2 Dec 2010 20:16:13 +0100) sip.setapi('QVariant', 2) Unfortunately, when I set "sip.setapi('QVariant', 2)" then I can't run the application as stand-alone Pyinstaller[1] executable (neither under Windows nor Linux): ValueErr

Re: [PyQt] Python 3 import error

2010-12-02 Thread Thorsten Kampe
* Hans-Peter Jansen (Thu, 2 Dec 2010 20:16:13 +0100) > > > sip.setapi('QVariant', 2) Unfortunately, when I set "sip.setapi('QVariant', 2)" then I can't run the application as stand-alone Pyinstaller[1] executable (neither under Windows nor Linux): ValueError: API 'QVariant' has already been set

Re: [PyQt] Segmentation Fault(coredump) QFileSystemModel, QSortFilterProxyModel, QTreeView

2010-12-02 Thread Hans-Peter Jansen
On Thursday 02 December 2010, 18:37:33 Jean Dalmayrac wrote: > Hi All, > I'm having segmentation fault crash while using QFileSystemModel and > QSortFilterProxyModel. > I'm trying to do a little files manager that will latter fit into a > bigger application. > > Everything is running normally, but

Re: [PyQt] Question about Sort/Filter behaviour

2010-12-02 Thread James Polk
Schawt!the "Date" sort works vey nice now! Thanks Pete!...awesome work! ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Sip usage problem

2010-12-02 Thread James Polk
...very interesting,... Thank you for taking time to explain that, Pete! Greatly appreciated! ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Python 3 import error

2010-12-02 Thread Hans-Peter Jansen
On Thursday 02 December 2010, 18:31:04 Thorsten Kampe wrote: > * Hans-Peter Jansen (Thu, 2 Dec 2010 15:47:28 +0100) > > > On Thursday 02 December 2010, 14:25:21 Thorsten Kampe wrote: > > > Okay, if I omit the ".toByteArray()", then the application starts > > > with Python 3 - but it doesn't work wi

Re: [PyQt] How to trigger refresh of background window

2010-12-02 Thread Vincent Vande Vyvre
Le 02/12/10 00:32, Ian a écrit : Hi all, How can I cause a repaint event on a window that is not the current focus? When I click on the window it comes to the front, repaints itself and shows the (changed) data correctly. However in my use case, data shown in the background wi

Re: [PyQt] Python 3 import error

2010-12-02 Thread Thorsten Kampe
* Hans-Peter Jansen (Thu, 2 Dec 2010 15:47:28 +0100) > On Thursday 02 December 2010, 14:25:21 Thorsten Kampe wrote: > > Okay, if I omit the ".toByteArray()", then the application starts > > with Python 3 - but it doesn't work with Python 2 anymore: > > > > self.restoreGeometry(settings.value('Geome

[PyQt] Segmentation Fault(coredump) QFileSystemModel, QSortFilterProxyModel, QTreeView

2010-12-02 Thread Jean Dalmayrac
Hi All, I'm having segmentation fault crash while using QFileSystemModel and QSortFilterProxyModel. I'm trying to do a little files manager that will latter fit into a bigger application. Everything is running normally, but after a number (undefined) of clicks on my QTreeView to open folders, m

Re: [PyQt] Python 3 import error

2010-12-02 Thread Thorsten Kampe
* Hans-Peter Jansen (Thu, 2 Dec 2010 15:47:28 +0100) > On Thursday 02 December 2010, 14:25:21 Thorsten Kampe wrote: > > Okay, if I omit the ".toByteArray()", then the application starts > > with Python 3 - but it doesn't work with Python 2 anymore: > > > > self.restoreGeometry(settings.value('Geome

Re: [PyQt] Python 3 import error

2010-12-02 Thread Hans-Peter Jansen
On Thursday 02 December 2010, 14:25:21 Thorsten Kampe wrote: > * Phil Thompson (Thu, 02 Dec 2010 12:39:58 +) > > > On Thu, 2 Dec 2010 13:17:22 +0100, Thorsten Kampe > > > > wrote: > > > So the ImportError is gone. Adding -py3 to pyrcc4 yields: > > > Traceback (most recent call last): > > > F

Re: [PyQt] pyqt4 cmake

2010-12-02 Thread Hans Meine
Hi! Am 02.12.2010 um 00:39 schrieb luxInteg: > I am learnig to use pyqt4 in a cmake project. I would like to know how to do that properly, too. Thorben Kröger was so nice to send me CMakeLists which I integrated into my VigraQt repository (*), but they do not work anymore. His work was based o

Re: [PyQt] Resize columns in QTreeViewv

2010-12-02 Thread Hans Meine
Hi again! Am 01.12.2010 um 18:22 schrieb Gionata Boccalini: > Only a small doubt on the last fix: isn't too expensive or slow to recreate a > QFileSystemModel at every signal?? Yes, it's not very nice, but obviously there's a bug in QFileSystemModel, so I resorted to this hack to reset its stat

Re: [PyQt] Python 3 import error

2010-12-02 Thread Thorsten Kampe
* Phil Thompson (Thu, 02 Dec 2010 12:39:58 +) > On Thu, 2 Dec 2010 13:17:22 +0100, Thorsten Kampe > wrote: > > So the ImportError is gone. Adding -py3 to pyrcc4 yields: > > Traceback (most recent call last): > > File "my_application.pyw", line 63, in > > mainWin = MainWindow() > >

Re: [PyQt] Python 3 import error

2010-12-02 Thread Phil Thompson
On Thu, 2 Dec 2010 13:17:22 +0100, Thorsten Kampe wrote: > * Hans-Peter Jansen (Thu, 2 Dec 2010 12:49:17 +0100) >> On Thursday 02 December 2010, 12:24:54 Thorsten Kampe wrote: >> > I'm trying to port a PyQt4 application from Python 2 to Python 3. >> > The application works fine with the latest Pyt

Re: [PyQt] Python 3 import error

2010-12-02 Thread Thorsten Kampe
* Hans-Peter Jansen (Thu, 2 Dec 2010 12:49:17 +0100) > On Thursday 02 December 2010, 12:24:54 Thorsten Kampe wrote: > > I'm trying to port a PyQt4 application from Python 2 to Python 3. > > The application works fine with the latest Python 2 (2.7.1) but not > > with Python 3.1.2: > > > > Traceback

Re: [PyQt] Python 3 import error

2010-12-02 Thread Hans-Peter Jansen
On Thursday 02 December 2010, 12:24:54 Thorsten Kampe wrote: > Hi, > > I'm trying to port a PyQt4 application from Python 2 to Python 3. The > application works fine with the latest Python 2 (2.7.1) but not with > Python 3.1.2: > > Traceback (most recent call last): > File "my_application.pyw", l

Re: [PyQt] Python 3 import error

2010-12-02 Thread Thorsten Kampe
* Phil Thompson (Thu, 02 Dec 2010 11:31:13 +) > On Thu, 2 Dec 2010 12:24:54 +0100, Thorsten Kampe > wrote: > > I'm trying to port a PyQt4 application from Python 2 to Python 3. The > > application works fine with the latest Python 2 (2.7.1) but not with > > Python 3.1.2: > > > > Traceback

Re: [PyQt] Python 3 import error

2010-12-02 Thread Phil Thompson
On Thu, 2 Dec 2010 12:24:54 +0100, Thorsten Kampe wrote: > Hi, > > I'm trying to port a PyQt4 application from Python 2 to Python 3. The > application works fine with the latest Python 2 (2.7.1) but not with > Python 3.1.2: > > Traceback (most recent call last): > File "my_application.pyw",

[PyQt] Python 3 import error

2010-12-02 Thread Thorsten Kampe
Hi, I'm trying to port a PyQt4 application from Python 2 to Python 3. The application works fine with the latest Python 2 (2.7.1) but not with Python 3.1.2: Traceback (most recent call last): File "my_application.pyw", line 10, in import resource.ui File "F:\[path]\resource\ui.py", lin