static-sites/bases/do-blog/resources/documents/python/gtk3/tutorial3.py

22 lines
569 B
Python
Executable File

#+BEGIN_COMMENT
.. title: Adding switch and radio widgets
.. slug: 03-adding-radio-buttons-and-switches
.. date: 2014-01-10 12:00:00 UTC
.. tags: GTK-3, python, widgets
.. category: python
.. description: GTK example demonstrating the use of switches and radio buttons.
.. type: text
#+END_COMMENT
#+CAPTION: Adding radio buttons
[[../../../images/gtk/tut03-switch-radio.png]]
The below sample shows loading and retrieving state values for radio buttons and switches.
web.pre.create(load(os.path.abspath('./content/gtk3/tut03/tut03-switch-radio.py')))