tkhello.rb
来自「ruby的源代码」· RB 代码 · 共 11 行
RB
11 行
require "tk"TkButton.new(nil, 'text' => 'hello', 'command' => proc{print "hello\n"}).pack('fill'=>'x')TkButton.new(nil, 'text' => 'quit', 'command' => 'exit').pack('fill'=>'x')Tk.mainloop
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?