View Single Post
Old 11-12-2018, 07:18 AM   #340
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,019
Default

Quote:
Originally Posted by dsyrock View Post
THIS is the present from GOD! I like it sooooo much!!

A question: I tried to made a button and then let it run an action. But it only run it one time. Then I kept on clicking on it, it did nothing
Strange. Make sure that when you assign the function to the button you're *not* adding ()s.

Good - gives the button the name of a function to run:
Code:
GUI.elms.my_btn.func = my_function
Bad - Runs the function immediately and gives the button whatever value it returned:
Code:
GUI.elms.my_btn.func = my_function()
Lokasenna is offline   Reply With Quote