1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/tk/lib/tkextlib/tcllib/tablelist.rb
nobu 3a47cf3395 * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-15 11:55:52 +00:00

28 lines
667 B
Ruby

#
# tkextlib/tcllib/tablelist.rb
# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
#
# * Part of tcllib extension
# * A multi-column listbox
require 'tk'
require 'tkextlib/tcllib.rb'
# check Tile extension :: If already loaded, use tablelist_tile.
unless defined? Tk::Tcllib::Tablelist_usingTile
Tk::Tcllib::Tablelist_usingTile =
TkPackage.provide('tile') || TkPackage.provide('Ttk')
end
if Tk::Tcllib::Tablelist_usingTile
# with Tile
require 'tkextlib/tcllib/tablelist_tile'
else
# without Tile
# TkPackage.require('tablelist', '4.2')
TkPackage.require('tablelist')
require 'tkextlib/tcllib/tablelist_core'
end