class Widgets::Button
A generic button widget. It currently is exactly like the custom widget but styled as a button.
Public Class Methods
Source
# File src/widgets/button.rb, line 10 def initialize options super @button = Gtk::Button.new label: '' update_safe init_timer if options[:interval] append @button end
Calls superclass method
Widgets::BaseWidget::new
Public Instance Methods
Source
# File src/widgets/button.rb, line 17 def update @button.set_label instance_eval(&@proc) end