Sha256: d7e7316f52d30b857dc2326deef7cca36898cf6a1c9f2da70c857a08815010f1
Contents?: true
Size: 445 Bytes
Versions: 1
Compression:
Stored size: 445 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ppcurses-0.0.21 | test/compositeMenu.rb |