programming.nbk: Home | Index | Next Page: Ruby: require | Previous Page: Ruby: Operators
In a hash:
radio1 = TkRadioButton.new("text"=>'Male', "value"=>'m', "variable"=>$sex)
or
In a code block:
radio2 = TkRadioButton.new() { text 'Female' value 'f' variable $sex }
or
radio2 = TkRadioButton.new() {text 'Female'; value 'f'; variable $sex}
See also Tk
programming.nbk: Home | Index | Next Page: Ruby: require | Previous Page: Ruby: Operators
Notebook exported on Monday, 7 July 2008, 18:56:06 PM Eastern Daylight Time