Elektrine lite

← Feed

@sstendahl@floss.social

Post #2774204

2026-02-16 11:50 UTC

@javalps@mastodon.social Honestly, it's a difficult question. I remember in the beginning that this was also quite difficult for me, especially working with xml directly. It does get easier over time. One thing that simplified things quite a bit, was doing the UI with help of blueprint. My typical advice is just to look how things are implemented in other projects, and try to implement from there. 1/x

Replies (1)

  • @sstendahl@floss.social 2026-02-16 11:50

    @javalps@mastodon.social If we look at an earlier version of Graphs (https://github.com/sstendahl/Graphs/tree/v1.5.0), after you defined your ui file. You create a window using this: ``` @Gtk.Template(resource_path="/se/sjoerd/Graphs/ui/window.ui") class GraphsWindow(Adw.ApplicationWindow): __gtype_name__ = "GraphsWindow" undo_button = Gtk.Template.Child() redo_button = Gtk.Template.Child() item_list = Gtk.Template.Child() sidebar_flap = Gtk.Template.Child() pan_button = Gtk.Template.Child() ``` 2/x

    Open ##2774205