From fcbf63e62c627deae76c1b8cb8c0876c536ed811 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Mon, 16 Mar 2020 18:49:26 +0900 Subject: Fresh start --- jni/ruby/ext/tk/lib/tkextlib/tcllib/tablelist.rb | 28 ++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 jni/ruby/ext/tk/lib/tkextlib/tcllib/tablelist.rb (limited to 'jni/ruby/ext/tk/lib/tkextlib/tcllib/tablelist.rb') diff --git a/jni/ruby/ext/tk/lib/tkextlib/tcllib/tablelist.rb b/jni/ruby/ext/tk/lib/tkextlib/tcllib/tablelist.rb new file mode 100644 index 0000000..bf5ab66 --- /dev/null +++ b/jni/ruby/ext/tk/lib/tkextlib/tcllib/tablelist.rb @@ -0,0 +1,28 @@ +# +# 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 -- cgit v1.2.3