The button is one of the simplest elements your Shoes applications in Ruby. After all, isn't a button just a simple element anyway? It has text and it does something when you click on it. It's just that simple. The button is one of the most used elements in Shoes applications.
The button method takes a single argument: the text to display in the button. Optionally, the button can also takes a block to define what happens when you click on the button.(Of course, a button that doesn't do anything isn't particularly useful).
Shoes.app :width => 200, :height => 140 do
button "Press me" do
alert "You pressed me"