Method: TkFont::Chooser.command

Defined in:
lib/tk/fontchooser.rb

.command(cmd = nil, &b) ⇒ Object



108
109
110
111
112
113
114
115
116
# File 'lib/tk/fontchooser.rb', line 108

def command(cmd=nil, &b)
  if cmd
    configure_cmd('command', cmd)
  elsif b
    configure_cmd('command', Proc.new(&b))
  else
    cget('command')
  end
end