TextButton

class guerilla.TextButton

Bases: guerilla.Window

A clickable button window with text

buttonclicked()

The buttonclicked method is called when the user clicked the button

This method is a callback to be implemented if you want the TextButton to react to user clicking the button.

LUA{ local mybutton = ui.textbutton (“mybutton”, parent, “Ok”) mybutton:setx (0) mybutton:sety (0) mybutton:setw (0, 1) mybutton:seth (20) function mybutton:buttonclicked ()

print (“mybutton was clicked”)

end }