Extended maintenance of Ruby 1.9.3 ended on February 23, 2015. Read more

In Files

  • tk/lib/tkextlib/blt/dragdrop.rb

Parent

Methods

Class/Module Index [+]

Quicksearch

Tk::BLT::DragDrop::Token

Constants

WidgetClassName

Public Class Methods

new(arg) click to toggle source
 
               # File tk/lib/tkextlib/blt/dragdrop.rb, line 20
def initialize(arg)
  if arg.kind_of?(Hash) # arg is a hash includes the widgetpath of token
    arg = _symbolkey2str(arg)
    install_win(nil, arg['widgetname'])
  else  # arg is a drag&drop source
    tk_call('::blt::drag&drop', 'source', arg)
    install_win(nil, tk_call('::blt::drag&drop', 'token', arg))
  end
end