# bluh?
import sys

from gi.repository import Gtk

class SpokeSelector(Gtk.Box):
    __gtype_name__ = "SpokeSelector"

    def __init__(self, icon=None, title="New Selector"):
        Gtk.Box.__init__(self, spacing=6)
        self.set_orientation(Gtk.Orientation.HORIZONTAL)

        self._icon = Gtk.Image()
        if icon:
            self._icon.new_from_file(icon)
        else:
            self._icon.new_from_stock("gtk-missing", Gtk.IconSize.LARGE_TOOLBAR)

        self._titleLabel = Gtk.Label()
        self._titleLabel.set_markup("<span weight='bold'>%s</span>" % title)

        self.pack_start(self._icon, False, False, 0)
        self.pack_start(self._titleLabel, True, True, 0)


w = Gtk.Window()
ss = SpokeSelector()
w.add(ss)
w.connect('destroy', Gtk.main_quit)
w.show_all()
Gtk.main()
