Re: [PyQt] Q(Core)Application.exec_() is not interruptable

2008-05-01 Thread İsmail Dönmez
Hi, On Thu, May 1, 2008 at 10:54 PM, Ewald de Wit <[EMAIL PROTECTED]> wrote: > On Thursday 01 May 2008 14:28:31 İsmail Dönmez wrote: > > Following code can't be interrupted with CTRL-C : > > >>> import sys > > >>> from PyQt4.QtCore import QCoreApplication > > >>> QCoreApplication.exec_(sys.arg

Re: [PyQt] Q(Core)Application.exec_() is not interruptable

2008-05-01 Thread Ewald de Wit
On Thursday 01 May 2008 14:28:31 İsmail Dönmez wrote: > Following code can't be interrupted with CTRL-C : > >>> import sys > >>> from PyQt4.QtCore import QCoreApplication > >>> QCoreApplication.exec_(sys.argv) > > Is this somehow intended and is there a way to overcome this? You can catch the sign

Re: [PyQt] Q(Core)Application.exec_() is not interruptable

2008-05-01 Thread Giovanni Bajo
On Thu, 2008-05-01 at 20:24 +0200, Christoph Burgmer wrote: > Am Donnerstag, 1. Mai 2008 schrieb İsmail Dönmez: > > Following code can't be interrupted with CTRL-C : > > >>> import sys > > >>> from PyQt4.QtCore import QCoreApplication > > >>> QCoreApplication.exec_(sys.argv) > > +1 on the question

Re: [PyQt] Q(Core)Application.exec_() is not interruptable

2008-05-01 Thread Christoph Burgmer
Am Donnerstag, 1. Mai 2008 schrieb İsmail Dönmez: > Following code can't be interrupted with CTRL-C : > >>> import sys > >>> from PyQt4.QtCore import QCoreApplication > >>> QCoreApplication.exec_(sys.argv) +1 on the question. I tried a lot like using module signal to trap a Ctrl+C but nothing see

[PyQt] EuroPython 2008: Call for Participation

2008-05-01 Thread David Boddie
[This announcement is somewhat later than the corresponding one from last year. Hopefully, it will still be interesting for those of you who are active in the European Python community.] Book Monday 7th July to Wednesday 9th July 2008 in your calendar! EuroPython 2008, the European conference f

[PyQt] drag and drop issue.

2008-05-01 Thread Jean-Baptiste BUTET
Hi all :) I'm programming drag and drop situation where pixmap is dragged from my pyqt application to openoffice. I have implement dragevent and mousspressevent, and it seems to work. But openoffice (xorg ?) don't see it as a droppable object. a video of issue: http://ashashiwa.free.fr//images_

Re: [PyQt] Accented characters

2008-05-01 Thread alteo_gange
Le jeudi 01 mai 2008, alteo_gange a écrit : > Hi, > > could you complete the next bit of code please? > > 1) File selection (the file's name is accented: ex. animé.txt) > file = QFileDialog.getOpenFileName(None, "Open"),".","All files (*.*)) > 2) Print file's name in a terminal > ??? > > It seems e

[PyQt] QDataStream shouldn't accept str as first argument

2008-05-01 Thread İsmail Dönmez
Hi, Following code will crash with PyQt4 snapshot and older versions : >>> a = str("") >>> b = QDataStream(a, QIODevice.ReadOnly) >>> b.readDouble() zsh: segmentation fault python Regards, ismail -- Never learn by your mistakes, if you do you may never dare to try again. _

[PyQt] Q(Core)Application.exec_() is not interruptable

2008-05-01 Thread İsmail Dönmez
Hi all, Following code can't be interrupted with CTRL-C : >>> import sys >>> from PyQt4.QtCore import QCoreApplication >>> QCoreApplication.exec_(sys.argv) Is this somehow intended and is there a way to overcome this? Regards, ismail -- Never learn by your mistakes, if you do you may never da

Re: [PyQt] pyqtSignature question

2008-05-01 Thread Phil Thompson
On Thursday 01 May 2008, Catriona Johnson wrote: > Hello > I have a signal/slot connection which I want to express with > @pyqtSignature syntax but am not sure how to do it. > > self.connect(self.myView.selectionModel(), > SIGNAL("currentRowChanged(QModelIndex,QModelIndex)"), self.changed) > > Any

Re: [PyQt] Updated PyQt Release Plans

2008-05-01 Thread Phil Thompson
On Thursday 01 May 2008, David Boddie wrote: > On Wed Apr 30 09:06:29 BST 2008, Phil Thompson wrote: > > ...and now would be a good time to let me know of anything else that > > should go into the release. > > The QtConcurrent namespace and the QFuture* classes related to it appear to > be missing.

Re: [PyQt] Updated PyQt Release Plans

2008-05-01 Thread Phil Thompson
On Thursday 01 May 2008, Giovanni Bajo wrote: > On Wed, 2008-04-30 at 22:18 +0200, Aaron Digulla wrote: > > Phil Thompson schrieb: > > >> - For everything derived from QObject, connect to the dispose signal. > > >> At this time, save a stack trace and a pointer to the Python handle > > >> associate

[PyQt] Accented characters

2008-05-01 Thread alteo_gange
Hi, could you complete the next bit of code please? 1) File selection (the file's name is accented: ex. animé.txt) file = QFileDialog.getOpenFileName(None, "Open"),".","All files (*.*)) 2) Print file's name in a terminal ??? It seems easy... too easy... -- alteo_gange ___

[PyQt] Re: Updated PyQt Release Plans

2008-05-01 Thread kib2
Hi, I've build the latest version and got one problem with the diagramscene.py sample : Traceback (most recent call last): File "diagramscene.py", line 837, in mainWindow = MainWindow() File "diagramscene.py", line 363, in __init__ self.createToolbars() File "diagramscene.py", l