lib/ppcurses/form/button.rb in ppcurses-0.1.0 vs lib/ppcurses/form/button.rb in ppcurses-0.1.1

- old
+ new

@@ -52,12 +52,12 @@ class ButtonPair < View attr_accessor :selected attr_accessor :selected_element - attr_reader :button1 - attr_reader :button2 + attr_accessor :button1 + attr_accessor :button2 def initialize(button1_label, button2_label) @button1 = Button.new(button1_label) @button2 = Button.new(button2_label) @@ -70,10 +70,10 @@ @selected_button.selected = val @selected=val end def height - 1 + 2 end def set_curs_pos(screen) Curses.curs_set(INVISIBLE) end