Hi Paul,

Off the top of my head, I think it could be related to the "theme".
GTK install defaults to a "MS-Windows" theme that does not display
stock icons in buttons.

Yep. Just tried your example.
I changed the theme to "Metal" and the stock icon appeared.

Mark Doukidis


On 3/29/07, Paul Malherbe <[EMAIL PROTECTED]> wrote:
Hi Everyone

I am having problems displaying buttons in win32.
The code runs perfectly under linux and displays the Icon and Text in
the button. Under windows however only the text displays.

Text:

win = gtk.Window()
but = gtk.Button(stock="gtk-quit")
win.add(but)
win.show_all()
gtk.main()

I am using:

python 2.4
Gtk+ Runtime Environment 2.6.10-rc1
pygtk-2.6.3

Is this a known problem or is there something else I need to do in windows?

Thanks for any help!

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

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

Reply via email to