Method: RETerm::Components::ButtonBox#window=

Defined in:
lib/reterm/components/button_box.rb

#window=(win) ⇒ Object

Raises:

  • (ArgumentError)


45
46
47
48
49
50
51
# File 'lib/reterm/components/button_box.rb', line 45

def window=(win)
  super(win)
  cw = win.create_child :rows => widget.requested_rows,
                        :cols => [widget.requested_cols, requested_cols].max
  raise ArgumentError, "could not create child" if cw.win.nil?
  cw.component = widget
end