tk 0.4.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +6 -0
- data/.github/workflows/test.yml +29 -0
- data/MANUAL_tcltklib.ja +1 -1
- data/README.macosx-aqua +1 -1
- data/README.md +8 -0
- data/ext/tk/extconf.rb +2 -2
- data/ext/tk/tkutil/tkutil.c +6 -5
- data/lib/multi-tk.rb +2 -2
- data/lib/thread_tk.rb +13 -0
- data/lib/tk/bgerror.rb +1 -1
- data/lib/tk/bindtag.rb +1 -1
- data/lib/tk/busy.rb +1 -1
- data/lib/tk/button.rb +1 -1
- data/lib/tk/canvas.rb +1 -1
- data/lib/tk/canvastag.rb +1 -1
- data/lib/tk/checkbutton.rb +1 -1
- data/lib/tk/clipboard.rb +1 -1
- data/lib/tk/clock.rb +1 -1
- data/lib/tk/composite.rb +1 -1
- data/lib/tk/console.rb +1 -1
- data/lib/tk/dialog.rb +1 -1
- data/lib/tk/encodedstr.rb +1 -1
- data/lib/tk/entry.rb +1 -1
- data/lib/tk/font.rb +1 -1
- data/lib/tk/fontchooser.rb +1 -1
- data/lib/tk/frame.rb +1 -1
- data/lib/tk/grid.rb +1 -1
- data/lib/tk/image.rb +1 -1
- data/lib/tk/itemconfig.rb +1 -1
- data/lib/tk/itemfont.rb +1 -1
- data/lib/tk/kinput.rb +1 -1
- data/lib/tk/label.rb +1 -1
- data/lib/tk/labelframe.rb +1 -1
- data/lib/tk/listbox.rb +1 -1
- data/lib/tk/macpkg.rb +1 -1
- data/lib/tk/menu.rb +1 -1
- data/lib/tk/menubar.rb +1 -1
- data/lib/tk/message.rb +1 -1
- data/lib/tk/mngfocus.rb +1 -1
- data/lib/tk/msgcat.rb +1 -1
- data/lib/tk/namespace.rb +1 -1
- data/lib/tk/optiondb.rb +1 -1
- data/lib/tk/optionobj.rb +1 -1
- data/lib/tk/pack.rb +1 -1
- data/lib/tk/package.rb +1 -1
- data/lib/tk/palette.rb +1 -1
- data/lib/tk/panedwindow.rb +1 -1
- data/lib/tk/place.rb +1 -1
- data/lib/tk/radiobutton.rb +1 -1
- data/lib/tk/root.rb +1 -1
- data/lib/tk/scale.rb +1 -1
- data/lib/tk/scrollable.rb +1 -1
- data/lib/tk/scrollbar.rb +1 -1
- data/lib/tk/scrollbox.rb +1 -1
- data/lib/tk/selection.rb +1 -1
- data/lib/tk/spinbox.rb +1 -1
- data/lib/tk/tagfont.rb +1 -1
- data/lib/tk/text.rb +1 -1
- data/lib/tk/textimage.rb +1 -1
- data/lib/tk/textmark.rb +1 -1
- data/lib/tk/texttag.rb +1 -1
- data/lib/tk/textwindow.rb +1 -1
- data/lib/tk/timer.rb +1 -1
- data/lib/tk/tk_mac.rb +1 -1
- data/lib/tk/toplevel.rb +1 -1
- data/lib/tk/txtwin_abst.rb +1 -1
- data/lib/tk/validation.rb +1 -1
- data/lib/tk/variable.rb +1 -1
- data/lib/tk/virtevent.rb +1 -1
- data/lib/tk/winfo.rb +1 -1
- data/lib/tk/winpkg.rb +1 -1
- data/lib/tk/wm.rb +1 -1
- data/lib/tk/xim.rb +1 -1
- data/lib/tk.rb +10 -59
- data/lib/tkextlib/ICONS/icons.rb +1 -1
- data/lib/tkextlib/blt/barchart.rb +1 -1
- data/lib/tkextlib/blt/bitmap.rb +1 -1
- data/lib/tkextlib/blt/busy.rb +1 -1
- data/lib/tkextlib/blt/component.rb +1 -1
- data/lib/tkextlib/blt/container.rb +1 -1
- data/lib/tkextlib/blt/cutbuffer.rb +1 -1
- data/lib/tkextlib/blt/dragdrop.rb +1 -1
- data/lib/tkextlib/blt/eps.rb +1 -1
- data/lib/tkextlib/blt/graph.rb +1 -1
- data/lib/tkextlib/blt/htext.rb +1 -1
- data/lib/tkextlib/blt/spline.rb +1 -1
- data/lib/tkextlib/blt/stripchart.rb +1 -1
- data/lib/tkextlib/blt/table.rb +1 -1
- data/lib/tkextlib/blt/tabnotebook.rb +1 -1
- data/lib/tkextlib/blt/tabset.rb +1 -1
- data/lib/tkextlib/blt/ted.rb +1 -1
- data/lib/tkextlib/blt/tile/button.rb +1 -1
- data/lib/tkextlib/blt/tile/checkbutton.rb +1 -1
- data/lib/tkextlib/blt/tile/frame.rb +1 -1
- data/lib/tkextlib/blt/tile/label.rb +1 -1
- data/lib/tkextlib/blt/tile/radiobutton.rb +1 -1
- data/lib/tkextlib/blt/tile/scrollbar.rb +1 -1
- data/lib/tkextlib/blt/tile/toplevel.rb +1 -1
- data/lib/tkextlib/blt/tile.rb +1 -1
- data/lib/tkextlib/blt/tree.rb +1 -1
- data/lib/tkextlib/blt/treeview.rb +1 -1
- data/lib/tkextlib/blt/unix_dnd.rb +1 -1
- data/lib/tkextlib/blt/vector.rb +1 -1
- data/lib/tkextlib/blt/watch.rb +1 -1
- data/lib/tkextlib/blt/win_printer.rb +1 -1
- data/lib/tkextlib/blt/winop.rb +1 -1
- data/lib/tkextlib/blt.rb +1 -1
- data/lib/tkextlib/bwidget/arrowbutton.rb +1 -1
- data/lib/tkextlib/bwidget/bitmap.rb +1 -1
- data/lib/tkextlib/bwidget/button.rb +1 -1
- data/lib/tkextlib/bwidget/buttonbox.rb +1 -1
- data/lib/tkextlib/bwidget/combobox.rb +1 -1
- data/lib/tkextlib/bwidget/dialog.rb +1 -1
- data/lib/tkextlib/bwidget/dragsite.rb +1 -1
- data/lib/tkextlib/bwidget/dropsite.rb +1 -1
- data/lib/tkextlib/bwidget/dynamichelp.rb +1 -1
- data/lib/tkextlib/bwidget/entry.rb +1 -1
- data/lib/tkextlib/bwidget/label.rb +1 -1
- data/lib/tkextlib/bwidget/labelentry.rb +1 -1
- data/lib/tkextlib/bwidget/labelframe.rb +1 -1
- data/lib/tkextlib/bwidget/listbox.rb +1 -1
- data/lib/tkextlib/bwidget/mainframe.rb +1 -1
- data/lib/tkextlib/bwidget/messagedlg.rb +1 -1
- data/lib/tkextlib/bwidget/notebook.rb +1 -1
- data/lib/tkextlib/bwidget/pagesmanager.rb +1 -1
- data/lib/tkextlib/bwidget/panedwindow.rb +1 -1
- data/lib/tkextlib/bwidget/panelframe.rb +1 -1
- data/lib/tkextlib/bwidget/passwddlg.rb +1 -1
- data/lib/tkextlib/bwidget/progressbar.rb +1 -1
- data/lib/tkextlib/bwidget/progressdlg.rb +1 -1
- data/lib/tkextlib/bwidget/scrollableframe.rb +1 -1
- data/lib/tkextlib/bwidget/scrolledwindow.rb +1 -1
- data/lib/tkextlib/bwidget/scrollview.rb +1 -1
- data/lib/tkextlib/bwidget/selectcolor.rb +1 -1
- data/lib/tkextlib/bwidget/selectfont.rb +1 -1
- data/lib/tkextlib/bwidget/separator.rb +1 -1
- data/lib/tkextlib/bwidget/spinbox.rb +1 -1
- data/lib/tkextlib/bwidget/statusbar.rb +1 -1
- data/lib/tkextlib/bwidget/titleframe.rb +1 -1
- data/lib/tkextlib/bwidget/tree.rb +1 -1
- data/lib/tkextlib/bwidget/widget.rb +1 -1
- data/lib/tkextlib/bwidget.rb +1 -1
- data/lib/tkextlib/itcl/incr_tcl.rb +1 -1
- data/lib/tkextlib/itk/incr_tk.rb +1 -1
- data/lib/tkextlib/iwidgets/buttonbox.rb +1 -1
- data/lib/tkextlib/iwidgets/calendar.rb +1 -1
- data/lib/tkextlib/iwidgets/canvasprintbox.rb +1 -1
- data/lib/tkextlib/iwidgets/canvasprintdialog.rb +1 -1
- data/lib/tkextlib/iwidgets/checkbox.rb +1 -1
- data/lib/tkextlib/iwidgets/combobox.rb +1 -1
- data/lib/tkextlib/iwidgets/dateentry.rb +1 -1
- data/lib/tkextlib/iwidgets/datefield.rb +1 -1
- data/lib/tkextlib/iwidgets/dialog.rb +1 -1
- data/lib/tkextlib/iwidgets/dialogshell.rb +1 -1
- data/lib/tkextlib/iwidgets/disjointlistbox.rb +1 -1
- data/lib/tkextlib/iwidgets/entryfield.rb +1 -1
- data/lib/tkextlib/iwidgets/extbutton.rb +1 -1
- data/lib/tkextlib/iwidgets/extfileselectionbox.rb +1 -1
- data/lib/tkextlib/iwidgets/extfileselectiondialog.rb +1 -1
- data/lib/tkextlib/iwidgets/feedback.rb +1 -1
- data/lib/tkextlib/iwidgets/fileselectionbox.rb +1 -1
- data/lib/tkextlib/iwidgets/fileselectiondialog.rb +1 -1
- data/lib/tkextlib/iwidgets/finddialog.rb +1 -1
- data/lib/tkextlib/iwidgets/hierarchy.rb +1 -1
- data/lib/tkextlib/iwidgets/hyperhelp.rb +1 -1
- data/lib/tkextlib/iwidgets/labeledframe.rb +1 -1
- data/lib/tkextlib/iwidgets/labeledwidget.rb +1 -1
- data/lib/tkextlib/iwidgets/mainwindow.rb +1 -1
- data/lib/tkextlib/iwidgets/menubar.rb +1 -1
- data/lib/tkextlib/iwidgets/messagebox.rb +1 -1
- data/lib/tkextlib/iwidgets/messagedialog.rb +1 -1
- data/lib/tkextlib/iwidgets/notebook.rb +2 -2
- data/lib/tkextlib/iwidgets/optionmenu.rb +1 -1
- data/lib/tkextlib/iwidgets/panedwindow.rb +1 -1
- data/lib/tkextlib/iwidgets/promptdialog.rb +1 -1
- data/lib/tkextlib/iwidgets/pushbutton.rb +1 -1
- data/lib/tkextlib/iwidgets/radiobox.rb +1 -1
- data/lib/tkextlib/iwidgets/scopedobject.rb +1 -1
- data/lib/tkextlib/iwidgets/scrolledcanvas.rb +1 -1
- data/lib/tkextlib/iwidgets/scrolledframe.rb +1 -1
- data/lib/tkextlib/iwidgets/scrolledhtml.rb +1 -1
- data/lib/tkextlib/iwidgets/scrolledlistbox.rb +1 -1
- data/lib/tkextlib/iwidgets/scrolledtext.rb +1 -1
- data/lib/tkextlib/iwidgets/scrolledwidget.rb +1 -1
- data/lib/tkextlib/iwidgets/selectionbox.rb +1 -1
- data/lib/tkextlib/iwidgets/selectiondialog.rb +1 -1
- data/lib/tkextlib/iwidgets/shell.rb +1 -1
- data/lib/tkextlib/iwidgets/spindate.rb +1 -1
- data/lib/tkextlib/iwidgets/spinint.rb +1 -1
- data/lib/tkextlib/iwidgets/spinner.rb +1 -1
- data/lib/tkextlib/iwidgets/spintime.rb +1 -1
- data/lib/tkextlib/iwidgets/tabnotebook.rb +2 -2
- data/lib/tkextlib/iwidgets/tabset.rb +1 -1
- data/lib/tkextlib/iwidgets/timeentry.rb +1 -1
- data/lib/tkextlib/iwidgets/timefield.rb +1 -1
- data/lib/tkextlib/iwidgets/toolbar.rb +1 -1
- data/lib/tkextlib/iwidgets/watch.rb +1 -1
- data/lib/tkextlib/iwidgets.rb +1 -1
- data/lib/tkextlib/pkg_checker.rb +1 -1
- data/lib/tkextlib/tcllib/autoscroll.rb +1 -1
- data/lib/tkextlib/tcllib/calendar.rb +1 -1
- data/lib/tkextlib/tcllib/canvas_sqmap.rb +1 -1
- data/lib/tkextlib/tcllib/canvas_zoom.rb +1 -1
- data/lib/tkextlib/tcllib/chatwidget.rb +1 -1
- data/lib/tkextlib/tcllib/crosshair.rb +1 -1
- data/lib/tkextlib/tcllib/ctext.rb +1 -1
- data/lib/tkextlib/tcllib/cursor.rb +1 -1
- data/lib/tkextlib/tcllib/dateentry.rb +1 -1
- data/lib/tkextlib/tcllib/datefield.rb +1 -1
- data/lib/tkextlib/tcllib/diagrams.rb +1 -1
- data/lib/tkextlib/tcllib/dialog.rb +1 -1
- data/lib/tkextlib/tcllib/getstring.rb +1 -1
- data/lib/tkextlib/tcllib/history.rb +1 -1
- data/lib/tkextlib/tcllib/ico.rb +1 -1
- data/lib/tkextlib/tcllib/ip_entry.rb +1 -1
- data/lib/tkextlib/tcllib/khim.rb +1 -1
- data/lib/tkextlib/tcllib/menuentry.rb +1 -1
- data/lib/tkextlib/tcllib/ntext.rb +1 -1
- data/lib/tkextlib/tcllib/panelframe.rb +1 -1
- data/lib/tkextlib/tcllib/plotchart.rb +1 -1
- data/lib/tkextlib/tcllib/ruler.rb +1 -1
- data/lib/tkextlib/tcllib/screenruler.rb +1 -1
- data/lib/tkextlib/tcllib/scrolledwindow.rb +1 -1
- data/lib/tkextlib/tcllib/scrollwin.rb +1 -1
- data/lib/tkextlib/tcllib/statusbar.rb +1 -1
- data/lib/tkextlib/tcllib/style.rb +1 -1
- data/lib/tkextlib/tcllib/superframe.rb +1 -1
- data/lib/tkextlib/tcllib/swaplist.rb +1 -1
- data/lib/tkextlib/tcllib/tablelist.rb +1 -1
- data/lib/tkextlib/tcllib/tablelist_core.rb +5 -5
- data/lib/tkextlib/tcllib/tablelist_tile.rb +1 -1
- data/lib/tkextlib/tcllib/tkpiechart.rb +1 -1
- data/lib/tkextlib/tcllib/toolbar.rb +1 -1
- data/lib/tkextlib/tcllib/tooltip.rb +1 -1
- data/lib/tkextlib/tcllib/validator.rb +1 -1
- data/lib/tkextlib/tcllib/widget.rb +1 -1
- data/lib/tkextlib/tcllib.rb +1 -1
- data/lib/tkextlib/tclx/tclx.rb +1 -1
- data/lib/tkextlib/tile/dialog.rb +1 -1
- data/lib/tkextlib/tile/sizegrip.rb +1 -1
- data/lib/tkextlib/tile/style.rb +1 -1
- data/lib/tkextlib/tile/tbutton.rb +1 -1
- data/lib/tkextlib/tile/tcheckbutton.rb +1 -1
- data/lib/tkextlib/tile/tcombobox.rb +1 -1
- data/lib/tkextlib/tile/tentry.rb +1 -1
- data/lib/tkextlib/tile/tframe.rb +1 -1
- data/lib/tkextlib/tile/tlabel.rb +1 -1
- data/lib/tkextlib/tile/tlabelframe.rb +1 -1
- data/lib/tkextlib/tile/tmenubutton.rb +1 -1
- data/lib/tkextlib/tile/tnotebook.rb +1 -1
- data/lib/tkextlib/tile/tpaned.rb +1 -1
- data/lib/tkextlib/tile/tprogressbar.rb +1 -1
- data/lib/tkextlib/tile/tradiobutton.rb +1 -1
- data/lib/tkextlib/tile/treeview.rb +1 -1
- data/lib/tkextlib/tile/tscale.rb +1 -1
- data/lib/tkextlib/tile/tscrollbar.rb +1 -1
- data/lib/tkextlib/tile/tseparator.rb +1 -1
- data/lib/tkextlib/tile/tspinbox.rb +1 -1
- data/lib/tkextlib/tile/tsquare.rb +1 -1
- data/lib/tkextlib/tile.rb +1 -1
- data/lib/tkextlib/tkDND/shape.rb +1 -1
- data/lib/tkextlib/tkDND/tkdnd.rb +1 -1
- data/lib/tkextlib/tkDND.rb +1 -1
- data/lib/tkextlib/tkHTML/htmlwidget.rb +1 -1
- data/lib/tkextlib/tkimg/bmp.rb +1 -1
- data/lib/tkextlib/tkimg/dted.rb +1 -1
- data/lib/tkextlib/tkimg/gif.rb +1 -1
- data/lib/tkextlib/tkimg/ico.rb +1 -1
- data/lib/tkextlib/tkimg/jpeg.rb +1 -1
- data/lib/tkextlib/tkimg/pcx.rb +1 -1
- data/lib/tkextlib/tkimg/pixmap.rb +1 -1
- data/lib/tkextlib/tkimg/png.rb +1 -1
- data/lib/tkextlib/tkimg/ppm.rb +1 -1
- data/lib/tkextlib/tkimg/ps.rb +1 -1
- data/lib/tkextlib/tkimg/raw.rb +1 -1
- data/lib/tkextlib/tkimg/sgi.rb +1 -1
- data/lib/tkextlib/tkimg/sun.rb +1 -1
- data/lib/tkextlib/tkimg/tga.rb +1 -1
- data/lib/tkextlib/tkimg/tiff.rb +1 -1
- data/lib/tkextlib/tkimg/window.rb +1 -1
- data/lib/tkextlib/tkimg/xbm.rb +1 -1
- data/lib/tkextlib/tkimg/xpm.rb +1 -1
- data/lib/tkextlib/tkimg.rb +1 -1
- data/lib/tkextlib/tktable/tktable.rb +1 -1
- data/lib/tkextlib/tktable.rb +1 -1
- data/lib/tkextlib/tktrans/tktrans.rb +1 -1
- data/lib/tkextlib/tktrans.rb +1 -1
- data/lib/tkextlib/treectrl/tktreectrl.rb +2 -2
- data/lib/tkextlib/trofs/trofs.rb +1 -1
- data/lib/tkextlib/vu/bargraph.rb +1 -1
- data/lib/tkextlib/vu/charts.rb +1 -1
- data/lib/tkextlib/vu/dial.rb +1 -1
- data/lib/tkextlib/vu/pie.rb +1 -1
- data/lib/tkextlib/vu/spinbox.rb +1 -1
- data/lib/tkextlib/vu.rb +1 -1
- data/lib/tkextlib/winico/winico.rb +1 -1
- data/lib/tkextlib/winico.rb +1 -1
- data/sample/demos-en/knightstour.rb +1 -0
- data/sample/demos-jp/knightstour.rb +1 -0
- data/sample/demos-jp/widget +4 -4
- data/sample/irbtk.rb +2 -0
- data/sample/irbtkw.rbw +13 -4
- data/sample/tktextio.rb +7 -3
- data/tk.gemspec +1 -1
- metadata +6 -7
- data/.travis.yml +0 -6
data/lib/tkextlib/tcllib.rb
CHANGED
data/lib/tkextlib/tclx/tclx.rb
CHANGED
data/lib/tkextlib/tile/dialog.rb
CHANGED
data/lib/tkextlib/tile/style.rb
CHANGED
data/lib/tkextlib/tile/tentry.rb
CHANGED
data/lib/tkextlib/tile/tframe.rb
CHANGED
data/lib/tkextlib/tile/tlabel.rb
CHANGED
data/lib/tkextlib/tile/tpaned.rb
CHANGED
data/lib/tkextlib/tile/tscale.rb
CHANGED
data/lib/tkextlib/tile.rb
CHANGED
data/lib/tkextlib/tkDND/shape.rb
CHANGED
data/lib/tkextlib/tkDND/tkdnd.rb
CHANGED
data/lib/tkextlib/tkDND.rb
CHANGED
data/lib/tkextlib/tkimg/bmp.rb
CHANGED
data/lib/tkextlib/tkimg/dted.rb
CHANGED
data/lib/tkextlib/tkimg/gif.rb
CHANGED
data/lib/tkextlib/tkimg/ico.rb
CHANGED
data/lib/tkextlib/tkimg/jpeg.rb
CHANGED
data/lib/tkextlib/tkimg/pcx.rb
CHANGED
data/lib/tkextlib/tkimg/png.rb
CHANGED
data/lib/tkextlib/tkimg/ppm.rb
CHANGED
data/lib/tkextlib/tkimg/ps.rb
CHANGED
data/lib/tkextlib/tkimg/raw.rb
CHANGED
data/lib/tkextlib/tkimg/sgi.rb
CHANGED
data/lib/tkextlib/tkimg/sun.rb
CHANGED
data/lib/tkextlib/tkimg/tga.rb
CHANGED
data/lib/tkextlib/tkimg/tiff.rb
CHANGED
data/lib/tkextlib/tkimg/xbm.rb
CHANGED
data/lib/tkextlib/tkimg/xpm.rb
CHANGED
data/lib/tkextlib/tkimg.rb
CHANGED
data/lib/tkextlib/tktable.rb
CHANGED
data/lib/tkextlib/tktrans.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
|
|
9
9
|
# call setup script for general 'tkextlib' libraries
|
10
10
|
require 'tkextlib/setup.rb'
|
@@ -1170,7 +1170,7 @@ class Tk::TreeCtrl
|
|
1170
1170
|
ret = num_or_str(tk_send('item', 'order', item))
|
1171
1171
|
end
|
1172
1172
|
|
1173
|
-
(ret.kind_of?(
|
1173
|
+
(ret.kind_of?(Integer) && ret < 0)? nil: ret
|
1174
1174
|
end
|
1175
1175
|
def item_visible_order(item)
|
1176
1176
|
item_order(item, true)
|
data/lib/tkextlib/trofs/trofs.rb
CHANGED
data/lib/tkextlib/vu/bargraph.rb
CHANGED
data/lib/tkextlib/vu/charts.rb
CHANGED
data/lib/tkextlib/vu/dial.rb
CHANGED
data/lib/tkextlib/vu/pie.rb
CHANGED
data/lib/tkextlib/vu/spinbox.rb
CHANGED
data/lib/tkextlib/vu.rb
CHANGED