Sha256: cd59619b1203506832e286072099e307f3cccae5ebe8779cdac23f87e603b1d2

Contents?: true

Size: 289 Bytes

Versions: 2

Compression:

Stored size: 289 Bytes

Contents

#!/usr/bin/env ruby

require 'rubygems'
require "newt"

begin

  Newt::Screen.new
  #Newt::Screen.init
  #Newt::Screen.cls

  e = Newt::Entry.new(1, 1, "Entry", 10, 0)

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

  f = Newt::Form.new
  f.add(e, 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/Entry_new.rb
newt-0.9.2 examples/test_method/Entry_new.rb