From 81abd6664b54e4c3a0f285e57f5b8af572e671d4 Mon Sep 17 00:00:00 2001 From: Oliver Kahrmann Date: Wed, 6 Oct 2021 19:27:49 +0200 Subject: [PATCH] Ensure loading the correct gtk version Fixes the error/warning `Gtk was imported without specifying a version first.` --- branches/0.3/pywinery/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/branches/0.3/pywinery/__init__.py b/branches/0.3/pywinery/__init__.py index 41f11b4..c25d8fe 100755 --- a/branches/0.3/pywinery/__init__.py +++ b/branches/0.3/pywinery/__init__.py @@ -37,6 +37,8 @@ import math import shutil +import gi +gi.require_version('Gtk', '3.0') from gi.repository import Gtk, Gdk, GLib, Gio, GdkPixbuf, GObject py3k = sys.version > '3'