Sha256: c84b6f6ba020ecbaf75fabbd2107f8274673974d367e845115cca8b4d3dda0be

Contents?: true

Size: 356 Bytes

Versions: 2

Compression:

Stored size: 356 Bytes

Contents

#!/usr/bin/env ruby

require 'rubygems'
require "newt"

begin

  Newt::Screen.new

  cb1 = Newt::Checkbox.new(1, 10, "Button1", '', nil)
  cb2 = Newt::Checkbox.new(1, 11, "Button2", '', nil)

  b = Newt::Button.new(1, 12, "Exit")

  f = Newt::Form.new
  f.add(cb1, cb2, b)

  f.run()

  v1, v2 = cb1.get, cb2.get
ensure
  Newt::Screen.finish
end

p v1, v2

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
newt-0.9.7 examples/test_method/Checkbox_get.rb
newt-0.9.2 examples/test_method/Checkbox_get.rb