since 2017-09-17
RubyKaigi 2017 で説明するために、ひさしぶりに使ってみた。
http://qiita.com/ftakao2007/items/230050be7351db49383d
Windows 10 x64 + Ruby 2.4.2-x64 で
> gem install tk Fetching: tk-0.2.0.gem (100%) Temporarily enhancing PATH for MSYS/MINGW... Installing required msys2 packages: mingw-w64-x86_64-tk Building native extensions. This could take a while... Successfully installed tk-0.2.0 Parsing documentation for tk-0.2.0 Installing ri documentation for tk-0.2.0 Done installing documentation for tk after 44 seconds 1 gem installed > irb irb(main):001:0> require 'tk' => true irb(main):002:0> button = TkButton.new => #<Tk::Button:0x000000000323bb50 @path=".w00000"> irb(main):003:0> button.text = 'exit' => "exit" irb(main):004:0> button.command = proc { exit } => #<Proc:0x00000000031b9240@(irb):4> irb(main):005:0> button.pack => #<Tk::Button:0x000000000323bb50 @path=".w00000"> irb(main):006:0> Tk.mainloop
ちなみになにかミラクルを期待したがそんなことはなく Tk のボタンは NVDA で読み上げできない。