Sha256: 3587aafd6832de45586d0242e689d9f187cc59aeb89a52349fb97036e22979ed

Contents?: true

Size: 451 Bytes

Versions: 4

Compression:

Stored size: 451 Bytes

Contents

#!/usr/bin/env ruby

require 'rubygems'
require_relative '../lib/ppcurses.rb'

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

4 entries across 4 versions & 1 rubygems

Version Path
ppcurses-0.0.20 test/compositeMenu.rb
ppcurses-0.0.19 test/compositeMenu.rb
ppcurses-0.0.18 test/compositeMenu.rb
ppcurses-0.0.17 test/compositeMenu.rb