I want to set a Bitmap to a hole Window-Object. I tested to do it with
__bmp = wx.Bitmap('/images/settings.bmp')
dc = wx.WindowDC(the_window)
dc.DrawBitmap(__bmp,0,0)
but this doesn't work. Some tipps?
One Problem is, that after creating the WindowDC object and putting the bitmap to it, the bitmap is "destroyed"
__mybmp = dc.GetAsBitmap()
print __mybmp.GetHeight()
output
0
crazy?!