def __init__(self):
        Gtk.MenuButton.__init__(self)
        self.set_margin_top(6)
        self.set_margin_bottom(4)
        self.set_margin_left(10)
        self.set_margin_right(4)

        menu = SimplePopupMenu()
        menu.simple_add('Connect', 'gtk-connect')
        menu.simple_add_separator()
        menu.simple_add_checkbox('One')
        menu.simple_add_checkbox('Two')
        menu.simple_add_checkbox('Three')
        menu.simple_add_separator()
        menu.simple_add('Quit', 'gtk-quit')

        self.set_halign(Gtk.Align.CENTER)
        self.set_direction(Gtk.ArrowType.DOWN)
        self.set_popup(menu)
        self.set_image(
            Gtk.Image.new_from_icon_name('emblem-system-symbolic', Gtk.IconSize.MENU)
        )