pdwidgets.widgets.image

Raster image widget.

class pdwidgets.widgets.image.Image(parent, x=0, y=0, w=None, h=None, align=None, align_to=None, fg=None, bg=None, visible=True, value=None, padding=None, chroma=None)[source]

Bases: Widget

Raster image widget (package icon module or .pbm / .bmp path).

changed()[source]

Invalidate after the image path changes.

draw(_=None)[source]

Blit the image or a placeholder rectangle.