Re: [PyQt] Multiprocessing and ProgressBar

2010-10-08 Thread Sybren A . Stüvel
there is a way to make the Qt signals work over Python's multiprocessing interface. -- Sybren A. Stüvel http://stuvel.eu/ ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] API 2 and Qt Designer

2010-09-29 Thread Sybren A . Stüvel
-to header either. -- Sybren A. Stüvel http://stuvel.eu/ signature.asc Description: Digital signature ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] API 2 and Qt Designer

2010-09-28 Thread Sybren A. Stüvel
On Tuesday 28 September 2010 11:51:06 Sybren A. Stüvel wrote: Is it possible to move to API 2 and still keep using Qt Designer? PS: I'm using Qt Designer on Kubuntu 10.04 from the qt4-designer package version 4:4.6.3-0ubuntu1. -- Sybren A. Stüvel syb...@stuvel.eu http://stuvel.eu

Re: [PyQt] API 2 and Qt Designer

2010-09-28 Thread Sybren A. Stüvel
errors. PS: Please reply to just the list, there is no need to do reply-all, I'm on the list too. With a reply-all I get your mail twice. -- Sybren A. Stüvel syb...@stuvel.eu http://stuvel.eu/ signature.asc Description: This is a digitally signed message part

Re: [PyQt] API 2 and Qt Designer

2010-09-28 Thread Sybren A. Stüvel
and 3... -- Sybren A. Stüvel syb...@stuvel.eu http://stuvel.eu/ signature.asc Description: This is a digitally signed message part. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Converting an ugly path to a shell path

2010-09-14 Thread Sybren A. Stüvel
, they will be received by the application just as- is. No escaping needed. import subprocess proc = subprocess.Popen([command, path]) -- Sybren A. Stüvel syb...@stuvel.eu http://stuvel.eu/ signature.asc Description: This is a digitally signed message part

Re: [PyQt] Converting an ugly path to a shell path

2010-09-14 Thread Sybren A. Stüvel
if you actually _know_ what the command is, and what its arguments are. For example, how would you know that the user isn't trying to run the ls /home/usr/test executable and pass it dir/ as the first argument? -- Sybren A. Stüvel syb...@stuvel.eu http://stuvel.eu/ signature.asc Description

Re: [PyQt] pyuic4 crash in 4.7.6

2010-09-13 Thread Sybren A. Stüvel
On Monday 13 September 2010 12:11:48 Gökçen Eraslan wrote: That's fixed in the latest snapshot, by the way. Great, thanks! -- Sybren A. Stüvel http://stuvel.eu/ signature.asc Description: This is a digitally signed message part. ___ PyQt mailing

[PyQt] pyuic4 crash in 4.7.6

2010-09-07 Thread Sybren A. Stüvel
this error. Downgrading to 4.7.4 gives me an ExpatError on the above test.ui, which I expected because it's not a valid XML file. Building my real UI files works just fine after the downgrade. Regards, -- Sybren A. Stüvel syb...@stuvel.eu http://stuvel.eu/ signature.asc Description

Re: [PyQt] pyuic4 crash in 4.7.6

2010-09-07 Thread Sybren A. Stüvel
. I'll wait for a proper fix ;-) Regards, -- Sybren A. Stüvel syb...@stuvel.eu http://stuvel.eu/ signature.asc Description: This is a digitally signed message part. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com

Re: [PyQt] connections vs. instance variables

2010-09-03 Thread Sybren A. Stüvel
or a connection? I'm sure this must be common. Are there guidelines to use, rules of thumb etc? Thanks, ~Eric -- Sybren A. Stüvel syb...@stuvel.eu http://stuvel.eu/ signature.asc Description: This is a digitally signed message part. ___ PyQt mailing

Re: [PyQt] Listview, scrollbar, empty row

2010-08-24 Thread Sybren A. Stüvel
in listview without passing via model. I am really interested in knowing how to achieve any of the above or if there's any other solution for this. Thanks, Mru -- Sybren A. Stüvel syb...@stuvel.eu http://stuvel.eu/ signature.asc Description: This is a digitally signed message part

Re: [PyQt] Listview, scrollbar, empty row

2010-08-24 Thread Sybren A. Stüvel
of a listview. Or can I? No idea, I was just merely suggesting a CSS approach. Regards, -- Sybren A. Stüvel syb...@stuvel.eu http://stuvel.eu/ signature.asc Description: This is a digitally signed message part. ___ PyQt mailing listPyQt

Re: [PyQt] generic exception handler

2010-08-19 Thread Sybren A . Stüvel
signal from the exception handler, and showing a dialog box from a connected slot in the GUI thread. Cheers, -- Sybren Stüvel http://stuvel.eu/ signature.asc Description: Digital signature ___ PyQt mailing listPyQt@riverbankcomputing.com http

Re: [PyQt] connect problem on windows xp

2010-07-29 Thread Sybren A . Stüvel
in the lines above wouldn't work while the signal.connect() does (on Ubuntu 10.04). That's strange, as signal.connect() works just fine here (Ubuntu 10.04). Please try to make a minimal example, just one bit of code that shows the problem. -- Sybren Stüvel http://stuvel.eu/ signature.asc Description

Re: [PyQt] connect problem on windows xp

2010-07-28 Thread Sybren A. Stüvel
On 27-7-2010 10:30, Fabio Mauri wrote: the whole file is quite big, but I think that the following is the interesting part (if you need something more, ask me and I'll post it): I think we need less, not more. This code won't run anyway, since you didn't provide the Ui_Wdw class. Try to create

Re: [PyQt] Issue with pyqtSlot(QModelIndex, QModelIndex)

2010-07-27 Thread Sybren A . Stüvel
. Excellent, thanks! -- Sybren Stüvel http://stuvel.eu/ signature.asc Description: Digital signature ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Issue with pyqtSlot(QModelIndex, QModelIndex)

2010-07-26 Thread Sybren A . Stüvel
of the exception. The exception occurs when running on PyQt 4.7.4, Qt 4.6.2 and Python 2.6 on Windows XP. The same code runs without error on PyQt 4.7.3, Qt 4.6.3 and Python 2.6 on Ubuntu Linux. Regards, -- Sybren Stüvel http://stuvel.eu/ signature.asc Description: Digital signature

Re: [PyQt] Issue with pyqtSlot(QModelIndex, QModelIndex)

2010-07-26 Thread Sybren A . Stüvel
that is compatible with currentChanged(QModelIndex,QModelIndex) Regards, -- Sybren Stüvel http://stuvel.eu/ signature.asc Description: Digital signature ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Issue with pyqtSlot(QModelIndex, QModelIndex)

2010-07-26 Thread Sybren A . Stüvel
On Tue, Jul 27, 2010 at 06:12:23AM +0200, Sybren A. Stüvel wrote: smodel = self.resultsView.selectionModel() smodel.currentChanged.connect(self.on_change) PS: This does work in concert with the @QtCore.pyqtSignal(...) decorator: QtCore.QObject.connect(smodel

Re: [PyQt] Connect a signal to a signal

2010-06-09 Thread Sybren A. Stüvel
On 9-6-2010 12:43, Jugdish wrote: Hi, what is the proper way to connect a signal to another signal using the new-style signal/slot syntax? I've been doing it like this: myObj1.mySignal.connect(lambda arg1, arg2: myObj2.mySignal.emit(arg1,arg2)) but is there a way to do it without using a

Re: [PyQt] QLineEdit drop event

2010-04-28 Thread Sybren A. Stüvel
? Or is there another way I don't see? You can register your subclass in the designer, and tell it to replace the QLineEdit instances with your subclass. In the field that would ordinarily hold the .h file that defines the subclass, enter the .py file instead. Regards, -- Sybren A. Stüvel http

[PyQt] Disposing of a QApplication

2010-03-12 Thread Sybren A. Stüvel
self.app self.fail(Done) It's done in a unittest.TestCase class, and the self.fail() calls are there so that I can quickly see what's going on. What would you recommend? -- Sybren A. Stüvel syb...@stuvel.eu http://stuvel.eu/ signature.asc Description: This is a digitally signed message

Re: [PyQt] New PyQt APIs

2010-02-16 Thread Sybren A. Stüvel
module (or package), so that you can just write: from PyQt4.__future__ import QString I can do simply from PyQt4.QtCore import QString and then use it. Can you give an example of where this fails? -- Sybren A. Stüvel syb...@stuvel.eu http://stuvel.eu/ signature.asc Description

Re: [PyQt] List-like objects and QVariant

2010-01-21 Thread Sybren A. Stüvel
for providing a fix in the future, and for giving me a workaround now. Regards, -- Sybren A. Stüvel syb...@stuvel.eu http://stuvel.eu/ signature.asc Description: This is a digitally signed message part. ___ PyQt mailing listPyQt@riverbankcomputing.com http

[PyQt] List-like objects and QVariant

2010-01-20 Thread Sybren A. Stüvel
) --- I hope you can help me to fix this issue. Regards, -- Sybren A. Stüvel syb...@stuvel.eu http://stuvel.eu/ signature.asc Description: This is a digitally signed message part. ___ PyQt mailing listPyQt