import gi
gi.require_version("Gtk", "4.0")

from gi.repository import Gtk


class Applet(Gtk.Box):
    name = "Generic applet"
    description = ""

    def __init__(self, orientation=Gtk.Orientation.HORIZONTAL, config=None):
        super().__init__(orientation=orientation)
        if orientation == Gtk.Orientation.VERTICAL:
            self.set_hexpand(True)
            self.set_vexpand(False)
        elif orientation == Gtk.Orientation.HORIZONTAL:
            self.set_vexpand(True)
            self.set_hexpand(False)

    def get_config(self):
        return {}
