type=class
superclass=TkButton
included=
extended=
library=tk.radiobutton
aliases=
aliasof=Radiobutton

ラジオボタンウィジェットのクラスです。
ラジオボタンは、複数の選択項目のうちの1つを選択するウィジェットです。

  require "tk"
  v  = TkVariable.new
  c = proc {print v, "\n"}
  TkRadioButton.new {text "a"; variable v; value 1; select;   command c; pack}
  TkRadioButton.new {text "b"; variable v; value 2; deselect; command c; pack}
  TkRadioButton.new {text "c"; variable v; value 3; deselect; command c; pack}
  Tk.mainloop
