In Files

  • tk/lib/tk/virtevent.rb

Parent

Methods

Class/Module Index [+]

Quicksearch

TkVirtualEvent::PreDefVirtEvent

Public Class Methods

new(event, *sequences) click to toggle source
 
               # File tk/lib/tk/virtevent.rb, line 18
def self.new(event, *sequences)
  if event =~ /^<(<.*>)>$/
    event = $1
  elsif event !~ /^<.*>$/
    event = '<' + event + '>'
  end
  if TkVirtualEvent::TkVirtualEventTBL.has_key?(event)
    TkVirtualEvent::TkVirtualEventTBL[event]
  else
    super(event, *sequences)
  end
end
            
new(event, *sequences) click to toggle source
 
               # File tk/lib/tk/virtevent.rb, line 31
def initialize(event, *sequences)
  @path = @id = event
  TkVirtualEvent::TkVirtualEventTBL[@id] = self
  add(*sequences)
end