[wxPython] how to automatically resize a window?

David Fraser davidf at sjsoft.com
Thu Apr 22 01:44:11 EDT 2004


Curzio Basso wrote:
> 
> Hi all,
> 
> I have a problem for which I wasn't able to find an answer anywhere 
> else, maybe someone can give me a hint...
> 
> I designed with XRCed a small GUI (the code is at the bottom of the 
> message) made up of a menu and a frame in which there are two panels, 
> placed by an horizontal sizer.
> 
> Now, what I would like to do is to be able to load an image and display 
> it on the left panel, automatically resizing the panel depending on the 
> image size (the code is at the end again). There are actually two problems:
> 
> 1) if I load an image the panel is not resized automatically
> 
> 2) if I resize the panel manually after having loaded the image, the DC 
> is not repainted. that is, the portion of the image which was invisible 
> is not painted
> 
> Is there anyone with a bit of time to explain me how to solve these 
> problems?
> 
> thanks, qrz

You probably want to go to the wxPython users mailing list for this (see 
the links on the wxpython home page)

David



More information about the Python-list mailing list