Method: TkVirtualEvent#info

Defined in:
lib/tk/virtevent.rb

#infoObject



123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# File 'lib/tk/virtevent.rb', line 123

def info
  tk_call_without_enc('event','info',"<#{@id}>").split(/\s+/).collect!{|seq|
    lst = seq.scan(/<*[^<>]+>*/).collect!{|subseq|
      case (subseq)
      when /^<<[^<>]+>>$/
        TkVirtualEvent.getobj(subseq[1..-2])
      when /^<[^<>]+>$/
        subseq[1..-2]
      else
        subseq.split('')
      end
    }.flatten
    (lst.size == 1) ? lst[0] : lst
  }
end