Gradience/src/plugin_row.py

18 lines
420 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")
2022-08-19 12:44:02 +00:00
class GradiencePluginRow(Adw.ActionRow):
__gtype_name__ = "GradiencePluginRow"
2022-08-19 12:23:25 +00:00
def __init__(self, name, repo, **kwargs):
super().__init__(**kwargs)
self.name = name
self.set_name(name)
self.set_title(name)
self.set_subtitle("@" + repo)