Sha256: f3e2f9cc15f07b35516c4077453eadb4ab32ac802b709c747d5c3936b02e13dc

Contents?: true

Size: 331 Bytes

Versions: 2

Compression:

Stored size: 331 Bytes

Contents

#!/usr/bin/env ruby

# ?

require 'rubygems'
require "newt"

begin

  Newt::Screen.new

  b1 = Newt::Button.new(1, 5, "Button1")
  b2 = Newt::Button.new(1, 9, "Button2")

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

  f = Newt::Form.new
  f.set_width(40)
  f.add(b1, b2, b)
  f.set_width(40)

  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/Form_set_width.rb
newt-0.9.2 examples/test_method/Form_set_width.rb