tk
tk copied to clipboard
Tk interface module using tcltklib
I am a member of the core Tcl/Tk development team and have wanting to test Ruby-Tk against some recent updates to the tip of Tk 8.7 in a Ruby app...
On irb, the default mode of eventloop thread control is "runnable on non-main thread", that is, "Thead.new{Tk.mainloo]" works. Probably irb users would prefer to be able to control widgets interactively....
I am on Mac OS 15.2 M2, using Ruby 3.4.1 which is installed from chruby, and it seems that #33 has reappeared: ```console irb(main):001> require "tk" *** Terminating app due...
Not sure this is the right place to post, but went round and round trying to get Tk working. export PATH="/opt/homebrew/opt/tcl-tk@8/bin:$PATH" export LDFLAGS="-L/opt/homebrew/opt/tcl-tk@8/lib" export CPPFLAGS="-I/opt/homebrew/opt/tcl-tk@8/include" export PKG_CONFIG_PATH="/opt/homebrew/opt/tcl-tk@8/lib/pkgconfig"
Trying with `ruby 4.0.0dev (2025-12-06 master 0346206d3e) +PRISM [x86_64-linux]` https://github.com/ruby/ruby/commit/0346206d3eab2a8e659be0dd52aea6fc7b0ebb06 ruby/tk git head ( https://github.com/ruby/tk/commit/6f35a07ffe3ea507d3f108770724fcf0d2d896f1 ) fails to compile as: ``` [mockbuild@e1884f31a42d49c49e2b15f6c152e3f2 tkutil]$ make -j2 -k gcc -I. -I/usr/include -I/usr/include/ruby/backward...