Class GTK1.ToggleButton
- Description
Toggle buttons are derived from normal buttons and are very similar, except they will always be in one of two states, alternated by a click. They may be depressed, and when you click again, they will pop back up. Click again, and they will pop back down.
GTK1.ToggleButton("Toggle button")
GTK1.ToggleButton("Toggle button")->set_active( 1 )
Signals: toggled
- Inherit Button
inherit GTK1.Button : Button
- Method create
GTK1.ToggleButton GTK1.ToggleButton(
string
|void
label
)- Description
If you supply a string, a label will be created and inserted in the button. Otherwise, use ->add(widget) to create the contents of the button.