Gradience/src/plugin_row.py
2022-08-19 14:23:26 +02:00

17 lines
428 B
Python

from gi.repository import Gtk, Gdk, Adw
from .constants import rootdir
@Gtk.Template(resource_path=f"{rootdir}/ui/plugin_row.ui")
class AdwcustomizerPluginRow(Adw.ActionRow):
__gtype_name__ = "AdwcustomizerPluginRow"
def __init__(self, name, repo, **kwargs):
super().__init__(**kwargs)
self.name = name
self.set_name(name)
self.set_title(name)
self.set_subtitle("@" + repo)