Reply
Thread Tools
Posts: 486 | Thanked: 153 times | Joined on Sep 2009 @ New York City
#1
Any thoughts why this decorator doesn't work on the N900/ PyMaemo?

@QtCore.pyqtSlot()
def onSignInDialogClosed(self):

I get an error when running some code on the N900:

Traceback (most recent call last):
File "./barrio.py", line 42, in <module>
class SignInDialog(QtGui.QDialog):
File "./barrio.py", line 85, in SignInDialog
@QtCore.pyqtSlot()
AttributeError: 'module' object has no attribute 'pyqtSlot'
 
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#2
AFAIK pyqtSlot needs PyQt 4.5+ but the one in the repos is 4.4. Do not despair, however, a new version (4.6) is already on the way and should be in the repositories shortly.
 

The Following 2 Users Say Thank You to attila77 For This Useful Post:
Posts: 486 | Thanked: 153 times | Joined on Sep 2009 @ New York City
#3
Originally Posted by attila77 View Post
AFAIK pyqtSlot needs PyQt 4.5+ but the one in the repos is 4.4. Do not despair, however, a new version (4.6) is already on the way and should be in the repositories shortly.
ok, that's cool, I found another way to do what I need:

self.connect(self.signInDlg, QtCore.SIGNAL('finished(int)'), self.onSignInDialogClosed)
 

The Following User Says Thank You to hypnotik For This Useful Post:
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#4
Followup: PyQt 4.6.2 has been uploaded to the Extras-devel repo
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 23:37.