examples/testtabp.rb in rbcurse-0.1.1 vs examples/testtabp.rb in rbcurse-0.1.2
- old
+ new
@@ -18,10 +18,11 @@
@tp = RubyCurses::TabbedPane.new nil do
height 12
width 50
row 5
col 10
+ button_type :ok
end
@tab1 = @tp.add_tab "&Language"
f1 = @tab1.form
#$radio = Variable.new
radio1 = RadioButton.new f1 do
@@ -93,9 +94,10 @@
# XXX update with new color and kb
VER::start_ncurses # this is initializing colors via ColorMap.setup
$log = Logger.new("view.log")
$log.level = Logger::DEBUG
n = TestTabbedPane.new
+ n.run
rescue => ex
ensure
VER::stop_ncurses
p ex if ex
p(ex.backtrace.join("\n")) if ex