#!/usr/bin/env python

import signal
import gi

gi.require_version('Gtk', '3.0')
gi.require_version('Gkbd', '3.0')

from gi.repository import Gtk, Gkbd

gl = Gkbd.KeyboardDrawingGroupLevel()
gl.group = 1
gl.level = 1

gkbd = Gkbd.KeyboardDrawing.new()

gkbd.set_groups_levels([gl, gl, gl, gl])

gkbd.set_track_modifiers(True)

window = Gtk.Window()
window.connect("destroy", lambda x: Gtk.main_quit())

window.add(gkbd)
window.show_all()

signal.signal(signal.SIGINT, signal.SIG_DFL)
Gtk.main()
