View Single Post
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#24
Originally Posted by noobmonkey View Post
meh ok maybe i needed more, as that doesnt explain where the function name is that i am calling..... which is where i am getting confused....

That starts a signal...?!(i think?)
I then need to figure out how to catch that and run a function?! lol

or is that the self.clickFoo part? (if the function is not part of the same class is it just clickFoo? )

(Or is it just me being confuzzled?)
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.
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 

The Following 2 Users Say Thank You to fatalsaint For This Useful Post: