Sha256: 74960e6b17ca5964b4d93393ba0a4844f0cd9187692f6ecfefed5a3e6d8c5094
Contents?: true
Size: 432 Bytes
Versions: 2
Compression:
Stored size: 432 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' require 'ppcurses' def displayMenu() centerMenu = PPCurses::Menu.new( [ "Press", "<ESCAPE>", "to Quit" ], nil ) radioMenu = PPCurses::RadioMenu.new( [ "Wow", "two", "menus!" ], nil ) mainMenu = PPCurses::CompositeMenu.new(centerMenu, radioMenu) mainMenu.show() mainMenu.getMenuSelection() mainMenu.close() end screen = PPCurses::Screen.new() screen.run { displayMenu() }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ppcurses-0.0.16 | test/compositeMenu.rb |
ppcurses-0.0.15 | test/compositeMenu.rb |