Method: TkWindow#command
- Defined in:
- lib/tk.rb
#command(cmd = nil, &b) ⇒ Object
5602 5603 5604 5605 5606 5607 5608 5609 5610 |
# File 'lib/tk.rb', line 5602 def command(cmd=nil, &b) if cmd configure_cmd('command', cmd) elsif b configure_cmd('command', Proc.new(&b)) else cget('command') end end |