#!/usr/bin/env python
from gi.repository import Gtk

ui = """
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <object class="GtkWindow" id="window">
    <child>
      <object class="GtkBox" id="box">
        <property name="orientation">vertical</property>
        <child>
          <object class="GtkRadioButton" id="radiobutton1">
            <property name="label">A</property>
            <property name="halign">start</property>
          </object>
        </child>
        <child>
          <object class="GtkRadioButton" id="radiobutton2">
            <property name="label">BB</property>
            <property name="halign">start</property>
            <property name="group">radiobutton1</property>
          </object>
        </child>
        <child>
          <object class="GtkRadioButton" id="radiobutton3">
            <property name="label">C</property>
            <property name="halign">start</property>
            <property name="group">radiobutton1</property>
          </object>
        </child>
      </object>
    </child>
  </object>
</interface>
"""


builder = Gtk.Builder()
builder.add_from_string(ui)
window = builder.get_object('window')
window.connect('delete-event', Gtk.main_quit)
window.show_all()
Gtk.main()
