class HelloButton
Public Class Methods
new()
click to toggle source
# File samples/hello/hello_button.rb, line 6 def initialize @count = 0 end
Public Instance Methods
launch()
click to toggle source
# File samples/hello/hello_button.rb, line 10 def launch app('HelloButton', 'Glimmer') { main_window('Hello, Button!') { @button = button("Click To Increment: 0", opts: [:frame_raised, :frame_thick, :layout_center_x, :layout_center_y]) { on(:command) do @count += 1 @button.text = "Click To Increment: #{@count}" end } } }.run end