#!/usr/bin/python3

import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk

label = Gtk.Label(label="This level bar should be this tall")
levelbar = Gtk.LevelBar(mode=Gtk.LevelBarMode.DISCRETE, min_value=0, max_value=4, value=2)
box = Gtk.Box(spacing=6)

box.pack_start(label, False, False, 0)
box.pack_start(levelbar, True, True, 0)

window = Gtk.Window()
window.add(box)
window.connect("delete-event", Gtk.main_quit)
window.show_all()
Gtk.main()
