class Gtk2CheckBoxes::YesNo

Public Class Methods

new(*par) click to toggle source
Calls superclass method
# File lib/gtk2checkboxes/gtk2checkboxes.rb, line 3
def initialize(*par)
  super(*par)
  add_button Gtk::Stock::NO, Gtk::ResponseType::CANCEL
  add_button Gtk::Stock::YES, Gtk::ResponseType::OK
end

Public Instance Methods

label(*par) click to toggle source
# File lib/gtk2checkboxes/gtk2checkboxes.rb, line 9
def label(*par)
  Such::Label.new child, *par
end
yes?() click to toggle source
# File lib/gtk2checkboxes/gtk2checkboxes.rb, line 13
def yes?
  show_all
  response = run
  destroy
  response == Gtk::ResponseType::OK
end