Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wbutton onclick #63

Open
vo1pwf opened this issue Jul 8, 2021 · 1 comment
Open

wbutton onclick #63

vo1pwf opened this issue Jul 8, 2021 · 1 comment

Comments

@vo1pwf
Copy link

vo1pwf commented Jul 8, 2021

I cant find any documentation anywhere
would love to know how to do a onclick run a function

@shijimasoft
Copy link

You should define a function and then connect it to 'on click' method

btn = WButton(5, "Click")

# object represent the calling button
def hello(object):
    print("Hello World")

btn.on('click', hello)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants