mirror of
https://github.com/aclist/dztui.git
synced 2026-08-28 02:37:20 +02:00
feat: add Mods class
This commit is contained in:
parent
271ed76c38
commit
3b7b131cf5
19
dzgui/views/pages/mods.py
Normal file
19
dzgui/views/pages/mods.py
Normal file
@ -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)
|
||||
Loading…
Reference in New Issue
Block a user