tk 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (298) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test.yml +1 -1
  3. data/MANUAL_tcltklib.ja +1 -1
  4. data/README.md +8 -0
  5. data/ext/tk/tkutil/tkutil.c +2 -2
  6. data/lib/multi-tk.rb +2 -2
  7. data/lib/thread_tk.rb +1 -1
  8. data/lib/tk/bgerror.rb +1 -1
  9. data/lib/tk/bindtag.rb +1 -1
  10. data/lib/tk/busy.rb +1 -1
  11. data/lib/tk/button.rb +1 -1
  12. data/lib/tk/canvas.rb +1 -1
  13. data/lib/tk/canvastag.rb +1 -1
  14. data/lib/tk/checkbutton.rb +1 -1
  15. data/lib/tk/clipboard.rb +1 -1
  16. data/lib/tk/clock.rb +1 -1
  17. data/lib/tk/composite.rb +1 -1
  18. data/lib/tk/console.rb +1 -1
  19. data/lib/tk/dialog.rb +1 -1
  20. data/lib/tk/encodedstr.rb +1 -1
  21. data/lib/tk/entry.rb +1 -1
  22. data/lib/tk/font.rb +1 -1
  23. data/lib/tk/fontchooser.rb +1 -1
  24. data/lib/tk/frame.rb +1 -1
  25. data/lib/tk/grid.rb +1 -1
  26. data/lib/tk/image.rb +1 -1
  27. data/lib/tk/itemconfig.rb +1 -1
  28. data/lib/tk/itemfont.rb +1 -1
  29. data/lib/tk/kinput.rb +1 -1
  30. data/lib/tk/label.rb +1 -1
  31. data/lib/tk/labelframe.rb +1 -1
  32. data/lib/tk/listbox.rb +1 -1
  33. data/lib/tk/macpkg.rb +1 -1
  34. data/lib/tk/menu.rb +1 -1
  35. data/lib/tk/menubar.rb +1 -1
  36. data/lib/tk/message.rb +1 -1
  37. data/lib/tk/mngfocus.rb +1 -1
  38. data/lib/tk/msgcat.rb +1 -1
  39. data/lib/tk/namespace.rb +1 -1
  40. data/lib/tk/optiondb.rb +1 -1
  41. data/lib/tk/optionobj.rb +1 -1
  42. data/lib/tk/pack.rb +1 -1
  43. data/lib/tk/package.rb +1 -1
  44. data/lib/tk/palette.rb +1 -1
  45. data/lib/tk/panedwindow.rb +1 -1
  46. data/lib/tk/place.rb +1 -1
  47. data/lib/tk/radiobutton.rb +1 -1
  48. data/lib/tk/root.rb +1 -1
  49. data/lib/tk/scale.rb +1 -1
  50. data/lib/tk/scrollable.rb +1 -1
  51. data/lib/tk/scrollbar.rb +1 -1
  52. data/lib/tk/scrollbox.rb +1 -1
  53. data/lib/tk/selection.rb +1 -1
  54. data/lib/tk/spinbox.rb +1 -1
  55. data/lib/tk/tagfont.rb +1 -1
  56. data/lib/tk/text.rb +1 -1
  57. data/lib/tk/textimage.rb +1 -1
  58. data/lib/tk/textmark.rb +1 -1
  59. data/lib/tk/texttag.rb +1 -1
  60. data/lib/tk/textwindow.rb +1 -1
  61. data/lib/tk/timer.rb +1 -1
  62. data/lib/tk/tk_mac.rb +1 -1
  63. data/lib/tk/toplevel.rb +1 -1
  64. data/lib/tk/txtwin_abst.rb +1 -1
  65. data/lib/tk/validation.rb +1 -1
  66. data/lib/tk/variable.rb +1 -1
  67. data/lib/tk/virtevent.rb +1 -1
  68. data/lib/tk/winfo.rb +1 -1
  69. data/lib/tk/winpkg.rb +1 -1
  70. data/lib/tk/wm.rb +1 -1
  71. data/lib/tk/xim.rb +1 -1
  72. data/lib/tk.rb +4 -2
  73. data/lib/tkextlib/ICONS/icons.rb +1 -1
  74. data/lib/tkextlib/blt/barchart.rb +1 -1
  75. data/lib/tkextlib/blt/bitmap.rb +1 -1
  76. data/lib/tkextlib/blt/busy.rb +1 -1
  77. data/lib/tkextlib/blt/component.rb +1 -1
  78. data/lib/tkextlib/blt/container.rb +1 -1
  79. data/lib/tkextlib/blt/cutbuffer.rb +1 -1
  80. data/lib/tkextlib/blt/dragdrop.rb +1 -1
  81. data/lib/tkextlib/blt/eps.rb +1 -1
  82. data/lib/tkextlib/blt/graph.rb +1 -1
  83. data/lib/tkextlib/blt/htext.rb +1 -1
  84. data/lib/tkextlib/blt/spline.rb +1 -1
  85. data/lib/tkextlib/blt/stripchart.rb +1 -1
  86. data/lib/tkextlib/blt/table.rb +1 -1
  87. data/lib/tkextlib/blt/tabnotebook.rb +1 -1
  88. data/lib/tkextlib/blt/tabset.rb +1 -1
  89. data/lib/tkextlib/blt/ted.rb +1 -1
  90. data/lib/tkextlib/blt/tile/button.rb +1 -1
  91. data/lib/tkextlib/blt/tile/checkbutton.rb +1 -1
  92. data/lib/tkextlib/blt/tile/frame.rb +1 -1
  93. data/lib/tkextlib/blt/tile/label.rb +1 -1
  94. data/lib/tkextlib/blt/tile/radiobutton.rb +1 -1
  95. data/lib/tkextlib/blt/tile/scrollbar.rb +1 -1
  96. data/lib/tkextlib/blt/tile/toplevel.rb +1 -1
  97. data/lib/tkextlib/blt/tile.rb +1 -1
  98. data/lib/tkextlib/blt/tree.rb +1 -1
  99. data/lib/tkextlib/blt/treeview.rb +1 -1
  100. data/lib/tkextlib/blt/unix_dnd.rb +1 -1
  101. data/lib/tkextlib/blt/vector.rb +1 -1
  102. data/lib/tkextlib/blt/watch.rb +1 -1
  103. data/lib/tkextlib/blt/win_printer.rb +1 -1
  104. data/lib/tkextlib/blt/winop.rb +1 -1
  105. data/lib/tkextlib/blt.rb +1 -1
  106. data/lib/tkextlib/bwidget/arrowbutton.rb +1 -1
  107. data/lib/tkextlib/bwidget/bitmap.rb +1 -1
  108. data/lib/tkextlib/bwidget/button.rb +1 -1
  109. data/lib/tkextlib/bwidget/buttonbox.rb +1 -1
  110. data/lib/tkextlib/bwidget/combobox.rb +1 -1
  111. data/lib/tkextlib/bwidget/dialog.rb +1 -1
  112. data/lib/tkextlib/bwidget/dragsite.rb +1 -1
  113. data/lib/tkextlib/bwidget/dropsite.rb +1 -1
  114. data/lib/tkextlib/bwidget/dynamichelp.rb +1 -1
  115. data/lib/tkextlib/bwidget/entry.rb +1 -1
  116. data/lib/tkextlib/bwidget/label.rb +1 -1
  117. data/lib/tkextlib/bwidget/labelentry.rb +1 -1
  118. data/lib/tkextlib/bwidget/labelframe.rb +1 -1
  119. data/lib/tkextlib/bwidget/listbox.rb +1 -1
  120. data/lib/tkextlib/bwidget/mainframe.rb +1 -1
  121. data/lib/tkextlib/bwidget/messagedlg.rb +1 -1
  122. data/lib/tkextlib/bwidget/notebook.rb +1 -1
  123. data/lib/tkextlib/bwidget/pagesmanager.rb +1 -1
  124. data/lib/tkextlib/bwidget/panedwindow.rb +1 -1
  125. data/lib/tkextlib/bwidget/panelframe.rb +1 -1
  126. data/lib/tkextlib/bwidget/passwddlg.rb +1 -1
  127. data/lib/tkextlib/bwidget/progressbar.rb +1 -1
  128. data/lib/tkextlib/bwidget/progressdlg.rb +1 -1
  129. data/lib/tkextlib/bwidget/scrollableframe.rb +1 -1
  130. data/lib/tkextlib/bwidget/scrolledwindow.rb +1 -1
  131. data/lib/tkextlib/bwidget/scrollview.rb +1 -1
  132. data/lib/tkextlib/bwidget/selectcolor.rb +1 -1
  133. data/lib/tkextlib/bwidget/selectfont.rb +1 -1
  134. data/lib/tkextlib/bwidget/separator.rb +1 -1
  135. data/lib/tkextlib/bwidget/spinbox.rb +1 -1
  136. data/lib/tkextlib/bwidget/statusbar.rb +1 -1
  137. data/lib/tkextlib/bwidget/titleframe.rb +1 -1
  138. data/lib/tkextlib/bwidget/tree.rb +1 -1
  139. data/lib/tkextlib/bwidget/widget.rb +1 -1
  140. data/lib/tkextlib/bwidget.rb +1 -1
  141. data/lib/tkextlib/itcl/incr_tcl.rb +1 -1
  142. data/lib/tkextlib/itk/incr_tk.rb +1 -1
  143. data/lib/tkextlib/iwidgets/buttonbox.rb +1 -1
  144. data/lib/tkextlib/iwidgets/calendar.rb +1 -1
  145. data/lib/tkextlib/iwidgets/canvasprintbox.rb +1 -1
  146. data/lib/tkextlib/iwidgets/canvasprintdialog.rb +1 -1
  147. data/lib/tkextlib/iwidgets/checkbox.rb +1 -1
  148. data/lib/tkextlib/iwidgets/combobox.rb +1 -1
  149. data/lib/tkextlib/iwidgets/dateentry.rb +1 -1
  150. data/lib/tkextlib/iwidgets/datefield.rb +1 -1
  151. data/lib/tkextlib/iwidgets/dialog.rb +1 -1
  152. data/lib/tkextlib/iwidgets/dialogshell.rb +1 -1
  153. data/lib/tkextlib/iwidgets/disjointlistbox.rb +1 -1
  154. data/lib/tkextlib/iwidgets/entryfield.rb +1 -1
  155. data/lib/tkextlib/iwidgets/extbutton.rb +1 -1
  156. data/lib/tkextlib/iwidgets/extfileselectionbox.rb +1 -1
  157. data/lib/tkextlib/iwidgets/extfileselectiondialog.rb +1 -1
  158. data/lib/tkextlib/iwidgets/feedback.rb +1 -1
  159. data/lib/tkextlib/iwidgets/fileselectionbox.rb +1 -1
  160. data/lib/tkextlib/iwidgets/fileselectiondialog.rb +1 -1
  161. data/lib/tkextlib/iwidgets/finddialog.rb +1 -1
  162. data/lib/tkextlib/iwidgets/hierarchy.rb +1 -1
  163. data/lib/tkextlib/iwidgets/hyperhelp.rb +1 -1
  164. data/lib/tkextlib/iwidgets/labeledframe.rb +1 -1
  165. data/lib/tkextlib/iwidgets/labeledwidget.rb +1 -1
  166. data/lib/tkextlib/iwidgets/mainwindow.rb +1 -1
  167. data/lib/tkextlib/iwidgets/menubar.rb +1 -1
  168. data/lib/tkextlib/iwidgets/messagebox.rb +1 -1
  169. data/lib/tkextlib/iwidgets/messagedialog.rb +1 -1
  170. data/lib/tkextlib/iwidgets/notebook.rb +2 -2
  171. data/lib/tkextlib/iwidgets/optionmenu.rb +1 -1
  172. data/lib/tkextlib/iwidgets/panedwindow.rb +1 -1
  173. data/lib/tkextlib/iwidgets/promptdialog.rb +1 -1
  174. data/lib/tkextlib/iwidgets/pushbutton.rb +1 -1
  175. data/lib/tkextlib/iwidgets/radiobox.rb +1 -1
  176. data/lib/tkextlib/iwidgets/scopedobject.rb +1 -1
  177. data/lib/tkextlib/iwidgets/scrolledcanvas.rb +1 -1
  178. data/lib/tkextlib/iwidgets/scrolledframe.rb +1 -1
  179. data/lib/tkextlib/iwidgets/scrolledhtml.rb +1 -1
  180. data/lib/tkextlib/iwidgets/scrolledlistbox.rb +1 -1
  181. data/lib/tkextlib/iwidgets/scrolledtext.rb +1 -1
  182. data/lib/tkextlib/iwidgets/scrolledwidget.rb +1 -1
  183. data/lib/tkextlib/iwidgets/selectionbox.rb +1 -1
  184. data/lib/tkextlib/iwidgets/selectiondialog.rb +1 -1
  185. data/lib/tkextlib/iwidgets/shell.rb +1 -1
  186. data/lib/tkextlib/iwidgets/spindate.rb +1 -1
  187. data/lib/tkextlib/iwidgets/spinint.rb +1 -1
  188. data/lib/tkextlib/iwidgets/spinner.rb +1 -1
  189. data/lib/tkextlib/iwidgets/spintime.rb +1 -1
  190. data/lib/tkextlib/iwidgets/tabnotebook.rb +2 -2
  191. data/lib/tkextlib/iwidgets/tabset.rb +1 -1
  192. data/lib/tkextlib/iwidgets/timeentry.rb +1 -1
  193. data/lib/tkextlib/iwidgets/timefield.rb +1 -1
  194. data/lib/tkextlib/iwidgets/toolbar.rb +1 -1
  195. data/lib/tkextlib/iwidgets/watch.rb +1 -1
  196. data/lib/tkextlib/iwidgets.rb +1 -1
  197. data/lib/tkextlib/pkg_checker.rb +1 -1
  198. data/lib/tkextlib/tcllib/autoscroll.rb +1 -1
  199. data/lib/tkextlib/tcllib/calendar.rb +1 -1
  200. data/lib/tkextlib/tcllib/canvas_sqmap.rb +1 -1
  201. data/lib/tkextlib/tcllib/canvas_zoom.rb +1 -1
  202. data/lib/tkextlib/tcllib/chatwidget.rb +1 -1
  203. data/lib/tkextlib/tcllib/crosshair.rb +1 -1
  204. data/lib/tkextlib/tcllib/ctext.rb +1 -1
  205. data/lib/tkextlib/tcllib/cursor.rb +1 -1
  206. data/lib/tkextlib/tcllib/dateentry.rb +1 -1
  207. data/lib/tkextlib/tcllib/datefield.rb +1 -1
  208. data/lib/tkextlib/tcllib/diagrams.rb +1 -1
  209. data/lib/tkextlib/tcllib/dialog.rb +1 -1
  210. data/lib/tkextlib/tcllib/getstring.rb +1 -1
  211. data/lib/tkextlib/tcllib/history.rb +1 -1
  212. data/lib/tkextlib/tcllib/ico.rb +1 -1
  213. data/lib/tkextlib/tcllib/ip_entry.rb +1 -1
  214. data/lib/tkextlib/tcllib/khim.rb +1 -1
  215. data/lib/tkextlib/tcllib/menuentry.rb +1 -1
  216. data/lib/tkextlib/tcllib/ntext.rb +1 -1
  217. data/lib/tkextlib/tcllib/panelframe.rb +1 -1
  218. data/lib/tkextlib/tcllib/plotchart.rb +1 -1
  219. data/lib/tkextlib/tcllib/ruler.rb +1 -1
  220. data/lib/tkextlib/tcllib/screenruler.rb +1 -1
  221. data/lib/tkextlib/tcllib/scrolledwindow.rb +1 -1
  222. data/lib/tkextlib/tcllib/scrollwin.rb +1 -1
  223. data/lib/tkextlib/tcllib/statusbar.rb +1 -1
  224. data/lib/tkextlib/tcllib/style.rb +1 -1
  225. data/lib/tkextlib/tcllib/superframe.rb +1 -1
  226. data/lib/tkextlib/tcllib/swaplist.rb +1 -1
  227. data/lib/tkextlib/tcllib/tablelist.rb +1 -1
  228. data/lib/tkextlib/tcllib/tablelist_core.rb +5 -5
  229. data/lib/tkextlib/tcllib/tablelist_tile.rb +1 -1
  230. data/lib/tkextlib/tcllib/tkpiechart.rb +1 -1
  231. data/lib/tkextlib/tcllib/toolbar.rb +1 -1
  232. data/lib/tkextlib/tcllib/tooltip.rb +1 -1
  233. data/lib/tkextlib/tcllib/validator.rb +1 -1
  234. data/lib/tkextlib/tcllib/widget.rb +1 -1
  235. data/lib/tkextlib/tcllib.rb +1 -1
  236. data/lib/tkextlib/tclx/tclx.rb +1 -1
  237. data/lib/tkextlib/tile/dialog.rb +1 -1
  238. data/lib/tkextlib/tile/sizegrip.rb +1 -1
  239. data/lib/tkextlib/tile/style.rb +1 -1
  240. data/lib/tkextlib/tile/tbutton.rb +1 -1
  241. data/lib/tkextlib/tile/tcheckbutton.rb +1 -1
  242. data/lib/tkextlib/tile/tcombobox.rb +1 -1
  243. data/lib/tkextlib/tile/tentry.rb +1 -1
  244. data/lib/tkextlib/tile/tframe.rb +1 -1
  245. data/lib/tkextlib/tile/tlabel.rb +1 -1
  246. data/lib/tkextlib/tile/tlabelframe.rb +1 -1
  247. data/lib/tkextlib/tile/tmenubutton.rb +1 -1
  248. data/lib/tkextlib/tile/tnotebook.rb +1 -1
  249. data/lib/tkextlib/tile/tpaned.rb +1 -1
  250. data/lib/tkextlib/tile/tprogressbar.rb +1 -1
  251. data/lib/tkextlib/tile/tradiobutton.rb +1 -1
  252. data/lib/tkextlib/tile/treeview.rb +1 -1
  253. data/lib/tkextlib/tile/tscale.rb +1 -1
  254. data/lib/tkextlib/tile/tscrollbar.rb +1 -1
  255. data/lib/tkextlib/tile/tseparator.rb +1 -1
  256. data/lib/tkextlib/tile/tspinbox.rb +1 -1
  257. data/lib/tkextlib/tile/tsquare.rb +1 -1
  258. data/lib/tkextlib/tile.rb +1 -1
  259. data/lib/tkextlib/tkDND/shape.rb +1 -1
  260. data/lib/tkextlib/tkDND/tkdnd.rb +1 -1
  261. data/lib/tkextlib/tkDND.rb +1 -1
  262. data/lib/tkextlib/tkHTML/htmlwidget.rb +1 -1
  263. data/lib/tkextlib/tkimg/bmp.rb +1 -1
  264. data/lib/tkextlib/tkimg/dted.rb +1 -1
  265. data/lib/tkextlib/tkimg/gif.rb +1 -1
  266. data/lib/tkextlib/tkimg/ico.rb +1 -1
  267. data/lib/tkextlib/tkimg/jpeg.rb +1 -1
  268. data/lib/tkextlib/tkimg/pcx.rb +1 -1
  269. data/lib/tkextlib/tkimg/pixmap.rb +1 -1
  270. data/lib/tkextlib/tkimg/png.rb +1 -1
  271. data/lib/tkextlib/tkimg/ppm.rb +1 -1
  272. data/lib/tkextlib/tkimg/ps.rb +1 -1
  273. data/lib/tkextlib/tkimg/raw.rb +1 -1
  274. data/lib/tkextlib/tkimg/sgi.rb +1 -1
  275. data/lib/tkextlib/tkimg/sun.rb +1 -1
  276. data/lib/tkextlib/tkimg/tga.rb +1 -1
  277. data/lib/tkextlib/tkimg/tiff.rb +1 -1
  278. data/lib/tkextlib/tkimg/window.rb +1 -1
  279. data/lib/tkextlib/tkimg/xbm.rb +1 -1
  280. data/lib/tkextlib/tkimg/xpm.rb +1 -1
  281. data/lib/tkextlib/tkimg.rb +1 -1
  282. data/lib/tkextlib/tktable/tktable.rb +1 -1
  283. data/lib/tkextlib/tktable.rb +1 -1
  284. data/lib/tkextlib/tktrans/tktrans.rb +1 -1
  285. data/lib/tkextlib/tktrans.rb +1 -1
  286. data/lib/tkextlib/treectrl/tktreectrl.rb +2 -2
  287. data/lib/tkextlib/trofs/trofs.rb +1 -1
  288. data/lib/tkextlib/vu/bargraph.rb +1 -1
  289. data/lib/tkextlib/vu/charts.rb +1 -1
  290. data/lib/tkextlib/vu/dial.rb +1 -1
  291. data/lib/tkextlib/vu/pie.rb +1 -1
  292. data/lib/tkextlib/vu/spinbox.rb +1 -1
  293. data/lib/tkextlib/vu.rb +1 -1
  294. data/lib/tkextlib/winico/winico.rb +1 -1
  295. data/lib/tkextlib/winico.rb +1 -1
  296. data/sample/tktextio.rb +2 -2
  297. data/tk.gemspec +1 -1
  298. metadata +3 -6
data/lib/tk/toplevel.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # tk/toplevel.rb : treat toplevel widget
4
4
  #
5
- require 'tk'
5
+ require 'tk' unless defined?(Tk)
6
6
  require 'tk/wm'
7
7
  require 'tk/menuspec'
8
8
 
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # tk/txtwin_abst.rb : TkTextWin abstract class
4
4
  #
5
- require 'tk'
5
+ require 'tk' unless defined?(Tk)
6
6
 
7
7
  class TkTextWin<TkWindow
8
8
  TkCommandNames = [].freeze
data/lib/tk/validation.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # tk/validation.rb - validation support module for entry, spinbox, and so on
4
4
  #
5
- require 'tk'
5
+ require 'tk' unless defined?(Tk)
6
6
 
7
7
  module Tk
8
8
  module ValidateConfigure
data/lib/tk/variable.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # tk/variable.rb : treat Tk variable object
4
4
  #
5
- require 'tk'
5
+ require 'tk' unless defined?(Tk)
6
6
 
7
7
  class TkVariable
8
8
  include Tk
data/lib/tk/virtevent.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  # tk/virtevent.rb : treats virtual events
4
4
  # 1998/07/16 by Hidetoshi Nagai <nagai@ai.kyutech.ac.jp>
5
5
  #
6
- require 'tk'
6
+ require 'tk' unless defined?(Tk)
7
7
 
8
8
  class TkVirtualEvent<TkObject
9
9
  extend Tk
data/lib/tk/winfo.rb CHANGED
@@ -5,7 +5,7 @@
5
5
  module TkWinfo
6
6
  end
7
7
 
8
- require 'tk'
8
+ require 'tk' unless defined?(Tk)
9
9
 
10
10
  module TkWinfo
11
11
  include Tk
data/lib/tk/winpkg.rb CHANGED
@@ -6,7 +6,7 @@
6
6
  # ATTENTION !!
7
7
  # This is NOT TESTED. Because I have no test-environment.
8
8
  #
9
- require 'tk'
9
+ require 'tk' unless defined?(Tk)
10
10
 
11
11
  module Tk::WinDDE
12
12
  end
data/lib/tk/wm.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # tk/wm.rb : methods for wm command
4
4
  #
5
- require 'tk'
5
+ require 'tk' unless defined?(Tk)
6
6
 
7
7
  module Tk
8
8
  module Wm
data/lib/tk/xim.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # tk/xim.rb : control input_method
4
4
  #
5
- require 'tk'
5
+ require 'tk' unless defined?(Tk)
6
6
 
7
7
  module TkXIM
8
8
  include Tk
data/lib/tk.rb CHANGED
@@ -1317,8 +1317,10 @@ EOS
1317
1317
  @add_tk_procs = [] # table of [name, args, body]
1318
1318
 
1319
1319
  @force_default_encoding ||= [false]
1320
- @encoding ||= [nil]
1321
- def @encoding.to_s; self.join(nil); end
1320
+ unless @encoding
1321
+ @encoding = [nil]
1322
+ def @encoding.to_s; self.join(nil); end
1323
+ end
1322
1324
 
1323
1325
  @cb_entry_class = Class.new(TkCallbackEntry){
1324
1326
  class << self
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
 
9
9
  # call setup script for general 'tkextlib' libraries
10
10
  require 'tkextlib/setup.rb'
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tkextlib/blt.rb'
9
9
  require 'tkextlib/blt/component.rb'
10
10
 
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tkextlib/blt.rb'
9
9
 
10
10
  module Tk::BLT
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tk/itemconfig.rb'
9
9
  require 'tkextlib/blt.rb'
10
10
 
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tkextlib/blt.rb'
9
9
 
10
10
  module Tk::BLT
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tkextlib/blt.rb'
9
9
 
10
10
  module Tk::BLT
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tkextlib/blt.rb'
9
9
 
10
10
  module Tk::BLT
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tk/itemconfig'
9
9
  require 'tkextlib/blt.rb'
10
10
 
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tk/canvas'
9
9
  require 'tkextlib/blt.rb'
10
10
 
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tkextlib/blt.rb'
9
9
  require 'tkextlib/blt/component.rb'
10
10
 
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tk/itemconfig.rb'
9
9
  require 'tkextlib/blt.rb'
10
10
 
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tkextlib/blt.rb'
9
9
 
10
10
  module Tk::BLT
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tkextlib/blt.rb'
9
9
  require 'tkextlib/blt/component.rb'
10
10
 
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tk/itemconfig.rb'
9
9
  require 'tkextlib/blt.rb'
10
10
 
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tkextlib/blt.rb'
9
9
  require 'tkextlib/blt/tabset.rb'
10
10
 
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tkextlib/blt.rb'
9
9
 
10
10
  module Tk::BLT
@@ -7,7 +7,7 @@
7
7
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
8
8
  #
9
9
 
10
- require 'tk'
10
+ require 'tk' unless defined?(Tk)
11
11
  require 'tkextlib/blt.rb'
12
12
 
13
13
  module Tk::BLT
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tk/button'
9
9
  require 'tkextlib/blt/tile.rb'
10
10
 
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tk/checkbutton'
9
9
  require 'tkextlib/blt/tile.rb'
10
10
 
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tk/frame'
9
9
  require 'tkextlib/blt/tile.rb'
10
10
 
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tk/label'
9
9
  require 'tkextlib/blt/tile.rb'
10
10
 
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tk/radiobutton'
9
9
  require 'tkextlib/blt/tile.rb'
10
10
 
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tk/scrollbar'
9
9
  require 'tkextlib/blt/tile.rb'
10
10
 
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tk/toplevel'
9
9
  require 'tkextlib/blt/tile.rb'
10
10
 
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tkextlib/blt.rb'
9
9
 
10
10
  module Tk::BLT
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tkextlib/blt.rb'
9
9
 
10
10
  module Tk::BLT
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tkextlib/blt.rb'
9
9
  require 'tk/validation.rb'
10
10
 
@@ -7,7 +7,7 @@
7
7
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
8
8
  #
9
9
 
10
- require 'tk'
10
+ require 'tk' unless defined?(Tk)
11
11
  require 'tkextlib/blt.rb'
12
12
 
13
13
  module Tk::BLT
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tkextlib/blt.rb'
9
9
 
10
10
  module Tk::BLT
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tkextlib/blt.rb'
9
9
 
10
10
  module Tk::BLT
@@ -7,7 +7,7 @@
7
7
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
8
8
  #
9
9
 
10
- require 'tk'
10
+ require 'tk' unless defined?(Tk)
11
11
  require 'tkextlib/blt.rb'
12
12
 
13
13
  module Tk::BLT
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tkextlib/blt.rb'
9
9
 
10
10
  module Tk::BLT
data/lib/tkextlib/blt.rb CHANGED
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tk/variable'
9
9
 
10
10
  # call setup script for general 'tkextlib' libraries
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tkextlib/bwidget.rb'
9
9
  require 'tkextlib/bwidget/button'
10
10
 
@@ -3,7 +3,7 @@
3
3
  # tkextlib/bwidget/bitmap.rb
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
- require 'tk'
6
+ require 'tk' unless defined?(Tk)
7
7
  require 'tk/image'
8
8
  require 'tkextlib/bwidget.rb'
9
9
 
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tk/button'
9
9
  require 'tkextlib/bwidget.rb'
10
10
 
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tkextlib/bwidget.rb'
9
9
  require 'tkextlib/bwidget/button'
10
10
 
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tk/entry'
9
9
  require 'tkextlib/bwidget.rb'
10
10
  require 'tkextlib/bwidget/listbox'
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tk/frame'
9
9
  require 'tkextlib/bwidget.rb'
10
10
  require 'tkextlib/bwidget/buttonbox'
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tkextlib/bwidget.rb'
9
9
 
10
10
  module Tk
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tkextlib/bwidget.rb'
9
9
 
10
10
  module Tk
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tkextlib/bwidget.rb'
9
9
 
10
10
  module Tk
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tk/entry'
9
9
  require 'tkextlib/bwidget.rb'
10
10
 
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tk/label'
9
9
  require 'tkextlib/bwidget.rb'
10
10
 
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tk/entry'
9
9
  require 'tkextlib/bwidget.rb'
10
10
  require 'tkextlib/bwidget/labelframe'
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tk/frame'
9
9
  require 'tkextlib/bwidget.rb'
10
10
  require 'tkextlib/bwidget/label'
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tk/canvas'
9
9
  require 'tkextlib/bwidget.rb'
10
10
 
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tk/frame'
9
9
  require 'tkextlib/bwidget.rb'
10
10
  require 'tkextlib/bwidget/progressbar'
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tkextlib/bwidget.rb'
9
9
  require 'tkextlib/bwidget/dialog.rb'
10
10
 
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tk/frame'
9
9
  require 'tkextlib/bwidget.rb'
10
10
 
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tk/frame'
9
9
  require 'tkextlib/bwidget.rb'
10
10
 
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tk/frame'
9
9
  require 'tkextlib/bwidget.rb'
10
10
 
@@ -4,7 +4,7 @@
4
4
  # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
5
5
  #
6
6
 
7
- require 'tk'
7
+ require 'tk' unless defined?(Tk)
8
8
  require 'tk/frame'
9
9
  require 'tkextlib/bwidget.rb'
10
10