[PyQt] asking for operation confirmation in dropMimeData

2009-01-29 Thread Lev Shamardin
Hi all, What is the correct method of asking for a user confirmation for the drag-drop operation in the model? Consider a user is dropping something into the model, and I want to ask him if he is sure about this drop. Is it allowed to pop up a message box from the dropMimeData method? How should I

Re: [PyQt] Odd QImage behavior

2009-01-29 Thread David Boddie
On Thu Jan 29 19:03:50 GMT 2009, Matt Smith wrote: > This test case makes two numpy arrays puts a vertical stripe and then > creates QImages. Change either dimension to 101 instead of 100 and the > image doesn't get painted properly. > > http://paste.pocoo.org/show/101921/ Right. I haven't tried

Re: [PyQt] QThread, suggestions.

2009-01-29 Thread Ville M. Vainio
On Thu, Jan 29, 2009 at 5:34 PM, Matt Smith wrote: > It looks like I could just replace the QThread with a > multiprocess.Process except for the fact the QThread is a QObject which > uses signals and slots. > > If I want to use the same techniques I would have to start a Process in > a QThread to

Re: [PyQt] Odd QImage behavior

2009-01-29 Thread Matt Smith
On Thu, 2009-01-29 at 15:37 +, pyqt-requ...@riverbankcomputing.com wrote: >> I think that is the problem for two reasons. First it depends on the >> size of the array, and Second the .ndarray part is left off of first >> example, and doesn't change anything when I include it. >You're just set

Re: [PyQt] QThread, suggestions.

2009-01-29 Thread Brian Kelley
I'm not sure why you would want to do this. You could just set up a QTimer to poll the Process to see if it was completed. The Qtimer func could then emit a finished signal. You could poll every second or so. You could even poll for percent complete if you have that information. Much easier

Re: [PyQt] QThread, suggestions.

2009-01-29 Thread Matt Smith
It looks like I could just replace the QThread with a multiprocess.Process except for the fact the QThread is a QObject which uses signals and slots. If I want to use the same techniques I would have to start a Process in a QThread to get similar behavior; a signal when finished. I suppose the

[PyQt] PocketPC port of PyQT4

2009-01-29 Thread Frédéric
Hi, Is there a port of PyQt4 for PocketPC ? Thanks, -- Frédéric http://www.gbiloba.org ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Odd QImage behavior

2009-01-29 Thread David Boddie
On Thu Jan 29 13:41:59 GMT 2009, Matt Smith wrote: > I made a mistake about what works and what doesn't. If I use > > nimage = QtGui.QImage(total.data,w,h,QtGui.QImage.Format_Indexed8) > nimage.setColorTable(COLORTABLE) > > Then there is strange wrapping that occurs if the image is not the correc

Re: [PyQt] Odd QImage behavior

2009-01-29 Thread Matt Smith
I made a mistake about what works and what doesn't. If I use nimage = QtGui.QImage(total.data,w,h,QtGui.QImage.Format_Indexed8) nimage.setColorTable(COLORTABLE) Then there is strange wrapping that occurs if the image is not the correct size If I use: nimage = QtGui.QImage(total.data,w,h,QtGui.Q

Re: [PyQt] QThread, suggestions.

2009-01-29 Thread Brian Kelley
Thanks, I didn't realize it was ported. On 1/29/09 7:57 AM, "Umit Oztosun" wrote: 2009/1/29 Brian Kelley > > If you happen to be using python 2.6, multiprocessing is your friend. > > http://docs.python.org/dev/library/multiprocessing.html Just to note that you can also use multiprocessing und

Re: [PyQt] QThread, suggestions.

2009-01-29 Thread Umit Oztosun
2009/1/29 Brian Kelley > > If you happen to be using python 2.6, multiprocessing is your friend. > > http://docs.python.org/dev/library/multiprocessing.html Just to note that you can also use multiprocessing under python 2.5: http://code.google.com/p/python-multiprocessing/ Regards, Umit ___

Re: [PyQt] QThread, suggestions.

2009-01-29 Thread Brian Kelley
If you happen to be using python 2.6, multiprocessing is your friend. http://docs.python.org/dev/library/multiprocessing.html It is very easy to use and because it runs in a separate process, there is no global interpreter lock. Way, way, way better than threading for a lot of cases. If it cr

Re: [PyQt] best way to manage forms?

2009-01-29 Thread simozack
2009/1/29, Linos : > Yes i have read the book, anyway i will read other time the chapter 15 only > in case i have missed anything important, but i prefer my users edit the > information in external widgets, for example the address street it is too > long to edit it clearly inside the table, i will

Re: [PyQt] best way to manage forms?

2009-01-29 Thread Linos
simozack escribió: 2009/1/27, Linos : For an example form that i would need to manage i have a customer table and an address table (because for every customer they can have > 1 addresses) so in the same form i would like to edit all the possible data of the customer. It seems a work for two Q

Re: [PyQt] best way to manage forms?

2009-01-29 Thread simozack
2009/1/27, Linos : > For an example form that i would need to manage i have a customer table and > an address table (because for every customer they can have > 1 addresses) so > in the same form i would like to edit all the possible data of the customer. It seems a work for two QSqlTableModel...

Re: [PyQt] PyQt, QWebView, SVG Rendering Problem

2009-01-29 Thread Atul Kulkarni
David Boddie wrote: > > On Fri Jan 23 12:47:29 GMT 2009, Atul Kulkarni wrote: > >> I have a problem of rendering SVG Images in QWebView. The SVG Images are >> replaced with missing image icons ("?"). I am inserting a simple SVG >> image >> in an XHTML document. > > This is a common problem wit