Gradience/src/plugin_row.py

18 lines
428 B
Python
Raw Normal View History

2022-08-19 12:23:25 +00:00
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)