The named arguments are also available in XML handlers: ... ... self:SetText("You clicked with " .. button);