Create a gist now
Instantly share code, notes, and snippets.
jameshibbard/fxbutton_connect.rb
Created Sep 2, 2012
What would you like to do?
Embed
Embed this gist in your website.
Share
Copy sharable URL for this gist.
Clone via
HTTPS
Clone with Git or checkout with SVN using the repository’s web address.
FXButton.connect example
FXButton.connect(SEL_COMMAND)do | |
# This code fires when the button is clicked | |
p "Yay! I was clicked!" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment