mirror of
https://github.com/aclist/dztui.git
synced 2026-10-31 23:22:44 +01:00
feat: add Mods class
This commit is contained in:
1 parent
271ed76c38
commit
3b7b131cf5
1 file changed
+19
@@ -0,0 +1,19 @@
|
|||||||
|
from typing import TYPE_CHECKING
|
||||||
|
from dzgui.views.trees.tree_mods import ModTreeView
|
||||||
|
|
||||||
|
import gi
|
||||||
|
gi.require_version("Gtk", "3.0")
|
||||||
|
from gi.repository import Gtk, Gdk # noqa
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from dzgui.controllers.mc import Controller
|
||||||
|
|
||||||
|
class Mods(Gtk.ScrolledWindow):
|
||||||
|
def __init__(self, controller: "Controller") -> None:
|
||||||
|
super().__init__()
|
||||||
|
|
||||||
|
self.controller = controller
|
||||||
|
self.tree = ModTreeView(controller)
|
||||||
|
|
||||||
|
self.add(self.tree)
|
||||||
|
self.controller.register_widget("modtreeview", self.tree)
|
||||||
Reference in new issue
Block a user