How to add a JPEG image to a Panel?

Hi,

Just a simple query, I am trying to add a simple JPEG image onto a panel in my wxFrame using, wxPyhon. I have tried a few tricks, but obviously i must be doing something very wrong!

Would be greatful if you could suggest how could attach my JPEG onto the panel in the code below. Extremely grateful for any help:

panel= wxPanel(panelA, 100,wxPoint(90,30), wxSize(120,70),
                                 wxSIMPLE_BORDER)
panel.SetBackgroundColour(wxColour(red=240, green=180, blue=252))

Thansks in advance

A.T.

···

_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today! http://www.msn.co.uk/messenger

have you tried to do it like Robin does it in the demo files?
look at the demo program, at "Using Images" the source code of wxImage demo should provide enough clues

···

On Tue, 02 Mar 2004 12:53:49 +0000, A. T. <inaleagueofmyown@hotmail.com> wrote:

Hi,

Just a simple query, I am trying to add a simple JPEG image onto a panel in my wxFrame using, wxPyhon. I have tried a few tricks, but obviously i must be doing something very wrong!

--
Peter Damoc
Hacker Wannabe
Now: XP SP1, Python 2.3.3, wxPython 2.4.2.4 (2.5.1.0p7u via set PYHONPATH)