2004-07-01 05:38:48 -04:00
|
|
|
#
|
|
|
|
# TkDND (Tk Drag & Drop Extension) support
|
|
|
|
# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
|
|
|
|
#
|
|
|
|
require 'tk'
|
|
|
|
|
|
|
|
# call setup script for general 'tkextlib' libraries
|
|
|
|
require 'tkextlib/setup.rb'
|
|
|
|
|
|
|
|
# library directory
|
|
|
|
dir = File.expand_path(__FILE__).sub(/#{File.extname(__FILE__)}$/, '')
|
|
|
|
|
|
|
|
# call setup script
|
|
|
|
require File.join(dir, 'setup.rb')
|
|
|
|
|
|
|
|
module Tk
|
|
|
|
module TkDND
|
|
|
|
dir = File.expand_path(__FILE__).sub(/#{File.extname(__FILE__)}$/, '')
|
|
|
|
|
2004-07-03 04:28:05 -04:00
|
|
|
#autoload :DND, 'tkextlib/tkDND/tkdnd'
|
|
|
|
#autoload :Shape, 'tkextlib/tkDND/shape'
|
|
|
|
autoload :DND, File.join(dir, 'tkdnd')
|
|
|
|
autoload :Shape, File.join(dir, 'shape')
|
2004-07-01 05:38:48 -04:00
|
|
|
end
|
|
|
|
end
|