I'm trying to get pyinstaller to import the minimum number of files
necessary for a Gtk theme:
https://github.com/pyinstaller/pyinstaller/issues/3084.
I can get the current theme name using the code:
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
I use the following to get a list of available themes, maybe it's useful:
import os
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk, Gio
def get_themes():
theme_dir = Gtk.rc_get_theme_dir()
theme_dirs = [theme_dir, os.path.join(os.path.
I'm trying to get pyinstaller to minimize the number of imported files for
a Gtk theme:
https://github.com/pyinstaller/pyinstaller/issues/3084.
I can get the current theme name using the code:
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk