1# 2# ::vu::spinbox widget 3# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp) 4# 5# a standard spinbox (<= 8.3) 6# This is the same as the 8.4 core spinbox widget. 7# 8require 'tk' 9 10if (Tk::TK_MAJOR_VERSION < 8 || 11 (Tk::TK_MAJOR_VERSION == 8 && Tk::TK_MINOR_VERSION < 4)) 12 # call setup script -- <libdir>/tkextlib/vu.rb 13 require 'tkextlib/vu.rb' 14 15 Tk.tk_call('namespace', 'import', '::vu::spinbox') 16end 17 18module Tk 19 module Vu 20 Spinbox = Tk::Spinbox 21 end 22end 23