class Tk::BLT::DragDrop::Token - tk-0.2.0 Documentation

# class Tk::BLT::DragDrop::Token

### Constants

WidgetClassName

### Public Class Methods

new(arg) click to toggle source

    # File 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