View Single Post
noobmonkey's Avatar
Posts: 3,203 | Thanked: 1,391 times | Joined on Nov 2009 @ Worthing, England
#25
Originally Posted by fatalsaint View Post
Yes to the last.. I guess my tutorial wasn't clear enough.. this is exactly what it is demonstrating.

That last part in his signal: self.clickFoo() < the function name is clickFoo().

If you use "self." that means within the same class as you are connecting the signal too. So you'll create def clickFoo: within the QT class for the main window.

If you want to call functions from other places.. you would pass the appropriate object to the function call in the self.clickFoo() part. If it's a global function, just "clickFoo()", etc.
Ahaaaaaaaaa!!!!
Superb, will finish my commenting so it is a bit tidier! - then give it a go!
Thank you so much for your help
(Would thank by donating towards your N900 - but no way near payday! hehe)
__________________
----------- 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? -
 

The Following User Says Thank You to noobmonkey For This Useful Post: