pygtk-image

image.set_from_pixbuf(pixbuf)
image.set_from_pixmap(pixmap, mask)
image.set_from_image(image)
image.set_from_file(filename)
image.set_from_stock(stock_id, size)
image.set_from_icon_set(icon_set, size)
image.set_from_animation(animation)

 

size参数如下:

ICON_SIZE_MENU
ICON_SIZE_SMALL_TOOLBA
ICON_SIZE_LARGE_TOOLBA
ICON_SIZE_BUTTON
ICON_SIZE_DND
ICON_SIZE_DIALOG

 

你可能感兴趣的:(image)