Added missing view files to native gui
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
# SPDX-License-Identifier: WTFPL
|
||||
|
||||
import os
|
||||
import gi
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import GLib, Gtk, Gdk
|
||||
|
||||
from yms import gtkutils, combobox, treeview
|
||||
|
||||
class DocumentsView:
|
||||
|
||||
def __init__(self, context):
|
||||
self.title = _("Documents")
|
||||
builder = Gtk.Builder()
|
||||
builder.set_translation_domain(context.textdomain)
|
||||
builder.add_from_file(os.path.join(context.ui_path, "documents.ui"))
|
||||
builder.connect_signals(self)
|
||||
self.topwidget = builder.get_object("topobject")
|
||||
gtkutils.init_named_controls(self, builder)
|
||||
Reference in New Issue
Block a user