On 2015-11-18 21:06, Charles O. Lawrence wrote: > I place the function at the bottom, then no matter if the variable is global > or local, the button press does nothing. Why? Because the function variable is nil when you do the assignment. Best regards, Jari Williamsson