Reputation: 273
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
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