the directory for current theme used by Gtk

2018-03-06 Thread Krister
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

Re: the directory for current theme used by Gtk

2017-12-09 Thread Christoph Reiter
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.

the directory for current theme used by Gtk

2017-12-08 Thread Krister
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