2004-07-01 05:38:48 -04:00
|
|
|
#
|
|
|
|
# The vu widget set support
|
|
|
|
# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
|
|
|
|
#
|
|
|
|
|
|
|
|
require 'tk'
|
|
|
|
|
|
|
|
# call setup script for general 'tkextlib' libraries
|
|
|
|
require 'tkextlib/setup.rb'
|
|
|
|
|
|
|
|
# call setup script
|
2004-07-06 05:42:12 -04:00
|
|
|
require 'tkextlib/vu/setup.rb'
|
2004-07-01 05:38:48 -04:00
|
|
|
|
|
|
|
# load package
|
|
|
|
# TkPackage.require('vu', '2.1')
|
2004-07-06 05:42:12 -04:00
|
|
|
TkPackage.require('vu')
|
2004-07-01 05:38:48 -04:00
|
|
|
|
|
|
|
# autoload
|
|
|
|
module Tk
|
|
|
|
module Vu
|
2004-07-14 21:18:57 -04:00
|
|
|
TkComm::TkExtlibAutoloadModule.unshift(self)
|
|
|
|
|
2005-05-30 10:53:52 -04:00
|
|
|
PACKAGE_NAME = 'vu'.freeze
|
|
|
|
def self.package_name
|
|
|
|
PACKAGE_NAME
|
|
|
|
end
|
|
|
|
|
2004-07-06 05:42:12 -04:00
|
|
|
def self.package_version
|
|
|
|
begin
|
2004-10-11 00:51:21 -04:00
|
|
|
TkPackage.require('vu')
|
2004-07-06 05:42:12 -04:00
|
|
|
rescue
|
2004-10-11 00:51:21 -04:00
|
|
|
''
|
2004-07-06 05:42:12 -04:00
|
|
|
end
|
|
|
|
end
|
2004-07-01 05:38:48 -04:00
|
|
|
|
2004-07-06 05:42:12 -04:00
|
|
|
##########################################
|
2004-07-01 05:38:48 -04:00
|
|
|
|
2004-07-06 05:42:12 -04:00
|
|
|
autoload :Dial, 'tkextlib/vu/dial'
|
2004-07-01 05:38:48 -04:00
|
|
|
|
2004-07-06 05:42:12 -04:00
|
|
|
autoload :Pie, 'tkextlib/vu/pie'
|
|
|
|
autoload :PieSlice, 'tkextlib/vu/pie'
|
|
|
|
autoload :NamedPieSlice, 'tkextlib/vu/pie'
|
2004-07-01 05:38:48 -04:00
|
|
|
|
2004-07-06 05:42:12 -04:00
|
|
|
autoload :Spinbox, 'tkextlib/vu/spinbox'
|
2004-07-01 05:38:48 -04:00
|
|
|
|
2004-07-06 05:42:12 -04:00
|
|
|
autoload :Bargraph, 'tkextlib/vu/bargraph'
|
2004-07-01 05:38:48 -04:00
|
|
|
end
|
|
|
|
end
|