Method: TkFont::Chooser.__configinfo_value

Defined in:
lib/tk/fontchooser.rb

.__configinfo_value(key, val) ⇒ Object



39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/tk/fontchooser.rb', line 39

def __configinfo_value(key, val)
  case key
  when 'parent'
    window(val)
  when 'title'
    val
  when 'font'
    if (lst = tk_split_simplelist(val)).size == 1
      lst[0]
    else
      lst.map{|elem| num_or_str(elem)}
    end
  when 'command'
    tk_tcl2ruby(val)
  when 'visible'
    bool(val)
  else # unknown
    val
  end
end