Thanks Bebraw for the answer! But, to update GUI buttons in a consistent manner in all cases is to update all drawing during the video's vertical refresh.Most video games update in that way in real time.I've wrote code to do so.Couldn't Blender's UI update do the same instead of using the allqueqe() function and just update all at once with any change in the whole screen's appearance?
Also, there's a simpler way to trap button presses in regards to button UI code.Is there a planned rewrite of the UI code? In regard's to simple button presses,the button is either up or down.It seems to me that the current UI code takes you all around the world to do a simple job instead of just tracking the mouse state and harmonizing it with the button drawing code and using a simple read flag.
I found it somewhat complicated and very nested and was tempted to write my own UI handler functions but since I'm developing for Blender,I wanted to use the native code.
These are just some suggestions.

My theory is code simple,brief,powerful,and reusable code.