class FontButton

Attributes

font_descriptor[RW]

Public Instance Methods

launch() click to toggle source
# File examples/font_button.rb, line 10
def launch
  window('hello world', 300, 200) {
    font_button {
      font <=> [self, :font_descriptor, after_write: -> { p font_descriptor }]
    }
    
    on_closing do
      puts 'Bye Bye'
    end
  }.show
end