The GtkCheckbutton class is the class for instantiating check button widgets.
The class heirarchy
Object +---GtkWidget +---GtkContainer +---GtkButton +---GtkCheckbutton |
The methods for the GtkCheckbutton class are documented below.
This method creates and initializes the widget.
This is a example of how to create a check button widget.
text = 'My Title' mychkbutton = .GtkCheckButton~new(text) |
The new GtkCheckButton object.
This method retrieves the checked/set state from the button.
This is a example of how to retrieve the state of a button.
state = mycheckbutton~state() /* state will be .true or .false */ |
None.
This method sets the checked/set state of the button.
This is a example of how to set the state of a button.
mycheckbutton~state = .true /* check the button */ mycheckbutton~state = .false /* uncheck the button */ |
None.