Help with wx.PaintDC

F

flamesrock

wxGlade has made this tooooooo easy for me so far. But right now I'm
very confused about something:
self.bmp = wx.Bitmap('sample.bmp')
dc = wx.PaintDC(self.notebook_region_overview)
dc.DrawBitmap(self.bmp,0,0,False)

self.notebook_region_overview is basically a wx.Panel, located on the
right side of a splitterWindow.

Anyways, this code *should* draw sample.bmp inside the right wx.Panel
(self.notebook_region_overview), but doesn't.

I would be grateful if anyone could correct me. There isn't much
information about drawing images to wx.Panels online.

-thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,260
Messages
2,571,308
Members
47,964
Latest member
ConnieBold

Latest Threads

Top