Nathan Osman
Nathan Osman

Reputation: 73195

How to set icon in gtk.AboutDialog on Windows?

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?

Upvotes: 1

Views: 1280

Answers (1)

ptomato
ptomato

Reputation: 57880

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().

Upvotes: 4

Related Questions