Sha256: 69279c0dbde4d219e4c8e363f3b52311ed9125aa0577267b06a7d2f06d939ce9

Contents?: true

Size: 322 Bytes

Versions: 2

Compression:

Stored size: 322 Bytes

Contents

#!/usr/bin/env ruby

require 'rubygems'
require "newt"

begin

  Newt::Screen.new

  rb1 = Newt::RadioButton.new(1, 10, "Button1", 0, nil)
  rb2 = Newt::RadioButton.new(1, 11, "Button2", 0, rb1)

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

  f = Newt::Form.new
  f.add(rb1, rb2, b)

  f.run()

ensure
  Newt::Screen.finish
end

Version data entries

2 entries across 2 versions & 1 rubygems

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