test/menu/compositeMenu.rb in ppcurses-0.0.25 vs test/menu/compositeMenu.rb in ppcurses-0.1.0
- old
+ new
@@ -2,11 +2,11 @@
require 'rubygems'
require_relative '../../lib/ppcurses.rb'
def display_menu
- center_menu = PPCurses::Menu.new( [ 'Press', '<ESCAPE>', 'to Quit'], nil )
- radio_menu = PPCurses::RadioMenu.new( %w(Wow two menus!), nil )
+ center_menu = PPCurses::Menu.new( [ 'Press', '<ESCAPE>', 'to Quit'] )
+ radio_menu = PPCurses::RadioMenu.new( %w(Wow two menus!) )
main_menu = PPCurses::CompositeMenu.new(center_menu, radio_menu)
main_menu.show