View Single Post
noobmonkey's Avatar
Posts: 3,203 | Thanked: 1,391 times | Joined on Nov 2009 @ Worthing, England
#28
Originally Posted by fatalsaint View Post
If you do it that way You might need self.ui.btnName.connect....

Do it like I do it in my tutorial
Code:
QtCore.QObject.connect(self.ui.btnAdd, QtCore.SIGNAL('clicked()'), self.doAdd)
ETA: Also self.pushButton I don't think is going to work.. do you have a line similar to:
Code:
self.ui = Ui_MainWindow()
Then you need to use self.ui.pushButton...

Wait - looking at your code - are you using pyuic4 or did you write your own qt interface in the code?
Lol woulda helped if i had spelt the button name correctly - missed the _hw part!

And yes finally, your qtcore bit worked!! - well i hope it did.... I picked the one thing to try that wasn't going to change - the GPS location! lol....

Will try the accellerometer stuff now!

P.s. have i told you i love you recently?
__________________
----------- Follow me on Twitter here
----------- My Photography Website and Blog is here
----------- Author of the N900 Health Check Application ----------- New Version in Extras Devel (Dec 2010 - 2.9.10)
----------- Are you on the N900 World Map? - http://pininthemap.com/maemo - masterpin: shotgun
----------- What apps do you want to see on the n900 or in MeeGo in the future? -