Sha256: 296922b16d176f70090d7468b9289fa3501ffea73c502050d99fd4514236b099
Contents?: true
Size: 428 Bytes
Versions: 3
Compression:
Stored size: 428 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'] ) radio_menu = PPCurses::RadioMenu.new( %w(Wow two menus!) ) 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ppcurses-0.1.2 | test/menu/compositeMenu.rb |
ppcurses-0.1.1 | test/menu/compositeMenu.rb |
ppcurses-0.1.0 | test/menu/compositeMenu.rb |