Hello all. I’m been trying to figure out how to use Toggle buttons and I’m not having much success. Noobness.
I seem to remember an example script that had a few GUI elements in it. One of which was a Toggle button that when pressed said something like “The button is pressed.”, and when you depressed it, it said something like “The button is depressed.” That’s all I’m really trying to do just to see how they work.
In my ‘bevent’ function I have
elif evt == EVENT_TOG: --print "something"
but it does it whenever I click it, I was trying to get it to display a message similar to that mentioned above. I can’t seem to tell the script how to tell the difference of it being pressed/depressed.
Any help would be appreciated. Much thanks.