Sha256: 27d28ff893f3b9c534bc35ae01db2e620a844505947af5f17eecfcc977ce8a1d

Contents?: true

Size: 434 Bytes

Versions: 6

Compression:

Stored size: 434 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", "another", "menu" ], nil )

  mainMenu = PPCurses::CompositeMenu.new(centerMenu, radioMenu)  


  mainMenu.show()
  mainMenu.getMenuSelection() 
  mainMenu.close()
end

screen = PPCurses::Screen.new()
screen.run { displayMenu() }

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ppcurses-0.0.14 test/compositeMenu.rb
ppcurses-0.0.13 test/compositeMenu.rb
ppcurses-0.0.12 test/compositeMenu.rb
ppcurses-0.0.11 test/compositeMenu.rb
ppcurses-0.0.10 test/compositeMenu.rb
ppcurses-0.0.9 test/compositeMenu.rb