Method: TkComm.image_obj

Defined in:
lib/tk.rb

.image_obj(val) ⇒ Object



614
615
616
617
618
619
620
621
622
# File 'lib/tk.rb', line 614

def image_obj(val)
  if val =~ /^i(_\d+_)?\d+$/
    TkImage::Tk_IMGTBL.mutex.synchronize{
      TkImage::Tk_IMGTBL[val]? TkImage::Tk_IMGTBL[val] : val
    }
  else
    val
  end
end