Method: TkWindow#set_focus

Defined in:
lib/tk.rb

#set_focus(force = false) ⇒ Object Also known as: focus



5530
5531
5532
5533
5534
5535
5536
5537
# File 'lib/tk.rb', line 5530

def set_focus(force=false)
  if force
    tk_call_without_enc('focus', '-force', path)
  else
    tk_call_without_enc('focus', path)
  end
  self
end