清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>
require 'Tk' top = TkRoot.new{title "Radio Button"} radioVar=TkVariable.new r1 = TkRadioButton.new(top){ text "Male" variable radioVar value 1 } r1.pack() r2 = TkRadioButton.new(top){ text "Female" variable radioVar value 2 } r2.pack() Tk.mainloop