TLSK
TLSK

Reputation: 273

Put image for background in wxpython panel

I want to put an image for background to a panel in wxpython and that image when i resize my panel i want of course to resize the image .Can any one help me do that?

Upvotes: 1

Views: 2253

Answers (1)

f4lco
f4lco

Reputation: 3824

Make use of the wx.EVT_ERASE_BACKGROUND event and bind it. Code example

Pay attention and read distinctly. The first listing represents bad practice.

Upvotes: 1

Related Questions