Sha256: 6e98168ec5b51ce52b2c205087113f814c14878160ff1eadfbbc24b14a613b0c

Contents?: true

Size: 335 Bytes

Versions: 3

Compression:

Stored size: 335 Bytes

Contents

#!/usr/bin/env ruby

require 'rubygems'
require 'ppcurses'

action = PPCurses::GetEnumeratedStringAction.new("Media Type? ",
              ["CD", "Vinyl", "MP3"] );

def doAction(action)
  action.show()
  action.execute()
end

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

puts "Value input was: " + action.data()  

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ppcurses-0.0.16 test/getEnumStringAction.rb
ppcurses-0.0.15 test/getEnumStringAction.rb
ppcurses-0.0.14 test/getEnumStringAction.rb