ok, i fixed the stocks icons problem by adding it to my app:

## Get Icons shown on buttons
settings = gtk.settings_get_default()
gtk.Settings.set_long_property(settings, "gtk-button-images", 1, "main")

i search for the gtk theme now...

thx

Le 26/01/2011 17:04, laguillaumie sylvain a écrit :
hi

first thanks for py2exe it s great ;)

i have some problems to use my own gtk theme and icons on windows

i made a etc/gtk-2.0/gtkrc file with the classic MS-Windows theme and the hicolor icon, when i change the gtk theme (copied in share/themes) nothing happen, it still use the MS-Windows theme and i don't have icons in the buttons (with stock icons only) it works if i added my own image in the buttons

i do not installed separated gtk runtime so i don t think i have a global gtkrc ( i used the latest pygtk all in one installer...)

so how can we do that please?

my etc/gtk-2.0/gtkrc is :

gtk-theme-name = "MS-Windows"
gtk-icon-theme-name = "hicolor"
gtk-button-images = 1


the gtk-button-images = 1 seems to not have any effects... if i change the icon theme it works, but not the gtk theme



the setup.py is:


from distutils.core import setup

from glob import glob
import os

import pygtk
pygtk.require('2.0')
import gtk, sys

import pygst
pygst.require('0.10')
import gst

try:
    import py2exe.mf as modulefinder
except ImportError:
    import modulefinder
import win32com
for p in win32com.__path__[1:]:
    modulefinder.AddPackagePath("win32com", p)
for extra in ["win32com.shell"]: #,"win32com.mapi"
    __import__(extra)
    m = sys.modules[extra]
    for p in m.__path__[1:]:
        modulefinder.AddPackagePath(extra, p)

try:
    import py2exe
except ImportError:
    pass

setup(
    name = 'gmediafinder',
    packages = ['GmediaFinder'],
description = 'Stream and download youtube or mp3 search engines files',
    version = '1.0',

    windows = [
                  {
                      'script': 'GmediaFinder/gmediafinder.py',
'icon_resources': [(1, "data/img/gmediafinder.ico")],
                  }
              ],

    options = {
                  'py2exe': {
                      'bundle_files': 3,
                      'packages':'encodings',
'includes': 'cairo, pango, pangocairo, atk, gobject, gio, pygst, gst'
                  }
              },

    data_files=[
                   ('images/22x22',['images/22x22/gmediafinder.png']),
    ('images/24x24',['images/24x24/gmediafinder.png']),
    ('images/48x48/apps',['images/48x48/gmediafinder.png']),
    ('data/glade',['data/glade/mainGui.glade']),
        ('data/img',['data/img/gmediafinder.png','data/img/sound.png']),
               ]
)


let me know if there s some errors, it s the first time i use it ...

thanks !

_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to