programming.nbk: Home | Index | Next Page: Ruby: unless | Previous Page: Ruby: Tk::RadioButton
mycheck = TkVariable.new TkCheckButton.new(top) { variable mycheck pack('padx'=>5, 'pady'=>5, 'side' => 'left') }
In the above example mycheck.value will return the string "0" if the checkbox is not checked or "1" if the checkbox is checked.
TkVariable methods:
programming.nbk: Home | Index | Next Page: Ruby: unless | Previous Page: Ruby: Tk::RadioButton
Notebook exported on Monday, 7 July 2008, 18:56:06 PM Eastern Daylight Time