#14: PyGTK themes do not work for frozen executables
-------------------------+--------------------------------------------------
 Reporter:  openticket   |       Owner:  giovannibajo
     Type:  defect       |      Status:  new         
 Priority:  normal       |   Milestone:              
Component:  PyInstaller  |     Version:              
 Severity:  normal       |    Keywords:              
-------------------------+--------------------------------------------------

Comment(by MeV):

 I forgot to say that I had to use the following code to load my theme:

 {{{
 import os, gtk
 try:

     basedir = os.environ['_MEIPASS2']

 except KeyError:

     basedir = sys.path[0]

 #Use embedded gtkrc
 gtkrc = os.path.join(basedir, 'gtkrc')
 gtk.rc_set_default_files([gtkrc])
 gtk.rc_reparse_all_for_settings(gtk.settings_get_default(), True)
 }}}

 To use it, save the code into a file named 'useGTK.py' and add the path to
 this file to ANALYSIS

-- 
Ticket URL: <http://www.pyinstaller.org/ticket/14#comment:2>
Pyinstaller <http://www.pyinstaller.org>
PyInstaller Project

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to