Sha256: 7d3a3222adf3d47ff2d5113df1a172efdfb567a48a34eb4fc6fbaca43f1b711f

Contents?: true

Size: 438 Bytes

Versions: 4

Compression:

Stored size: 438 Bytes

Contents

#!/usr/bin/env ruby

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 )

  main_menu = PPCurses::CompositeMenu.new(center_menu, radio_menu)


  main_menu.show
  main_menu.menu_selection
  main_menu.close
end

screen = PPCurses::Screen.new
screen.run { display_menu }

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ppcurses-0.0.25 test/menu/compositeMenu.rb
ppcurses-0.0.24 test/menu/compositeMenu.rb
ppcurses-0.0.23 test/menu/compositeMenu.rb
ppcurses-0.0.22 test/menu/compositeMenu.rb