panorama_panel.py
Python script, ASCII text executable
1import gi 2gi.require_version("Gtk", "4.0") 3 4from gi.repository import Gtk 5 6 7class Applet(Gtk.Box): 8name = "Generic applet" 9description = "" 10 11def __init__(self, orientation=Gtk.Orientation.HORIZONTAL, config=None): 12super().__init__(orientation=orientation) 13if orientation == Gtk.Orientation.VERTICAL: 14self.set_hexpand(True) 15self.set_vexpand(False) 16elif orientation == Gtk.Orientation.HORIZONTAL: 17self.set_vexpand(True) 18self.set_hexpand(False) 19 20def get_config(self): 21return {} 22