Skip to content

Commit

Permalink
Python Previewer: Initialize Shumate (#884)
Browse files Browse the repository at this point in the history
  • Loading branch information
theCapypara committed Feb 16, 2024
1 parent 99d35b7 commit b134c81
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/langs/python/python-previewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
gi.require_version("Graphene", "1.0")
gi.require_version("Gsk", "4.0")
gi.require_version("GtkSource", "5")
gi.require_version("Shumate", "1.0")
gi.require_version("WebKit", "6.0")
gi.require_version("Workbench", "0")

Expand All @@ -34,6 +35,7 @@
Graphene,
Gio,
GtkSource,
Shumate,
WebKit,
Workbench,
)
Expand All @@ -44,6 +46,7 @@
Adw.init()
GtkSource.init()
GObject.type_ensure(WebKit.WebView)
GObject.type_ensure(Shumate.SimpleMap)

resource = Gio.Resource.load(
f'/app/share/{os.environ["FLATPAK_ID"]}/re.sonny.Workbench.libworkbench.gresource'
Expand Down

0 comments on commit b134c81

Please sign in to comment.