]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/wxStaticBitmap.py
2 from wxPython
.wx
import *
8 #----------------------------------------------------------------------
10 class TestPanel(wxPanel
):
11 def __init__(self
, parent
, log
):
12 wxPanel
.__init
__(self
, parent
, -1)
16 wxStaticText(self
, -1, "This is a wxStaticBitmap.", wxPoint(45, 15))
18 bmp
= images
.getTest2Bitmap()
19 mask
= wxMaskColour(bmp
, wxBLUE
)
21 wxStaticBitmap(self
, -1, bmp
, wxPoint(80, 50),
22 wxSize(bmp
.GetWidth(), bmp
.GetHeight()))
24 bmp
= images
.getRobinBitmap()
25 wxStaticBitmap(self
, -1, bmp
, (80, 150))
27 wxStaticText(self
, -1, "Hey, if Ousterhout can do it, so can I.",
31 #----------------------------------------------------------------------
33 def runTest(frame
, nb
, log
):
34 win
= TestPanel(nb
, log
)
37 #----------------------------------------------------------------------