Files
cthulhu/tests/gtk_radio_group.py

20 lines
559 B
Python

#!/usr/bin/env python3
"""Small GTK radio group for native accessibility capture."""
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk
window = Gtk.Window(title="Radio group probe")
window.connect("destroy", Gtk.main_quit)
frame = Gtk.Frame(label="Punctuation Level")
buttons = Gtk.Box(spacing=8)
first = Gtk.RadioButton.new_with_label_from_widget(None, "None")
second = Gtk.RadioButton.new_with_label_from_widget(first, "Some")
buttons.add(first)
buttons.add(second)
frame.add(buttons)
window.add(frame)
window.show_all()
Gtk.main()