1

I have an about dialog in my Python application and I want to set a custom icon for the dialog.

I looked at set_logo_icon_name(), but that doesn't accept an absolute path to an image.

What can I do to insert my custom icon?

kapa
  • 77,694
  • 21
  • 158
  • 175
Nathan Osman
  • 71,149
  • 71
  • 256
  • 361

1 Answers1

4

Use set_logo() instead. set_logo_icon_name() is for named (i.e., themed) icons. set_logo() takes a gtk.gdk.Pixbuf which you can create from an absolute image path with gtk.gdk.pixbuf_new_from_file().

ptomato
  • 56,175
  • 13
  • 112
  • 165