]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/wxStaticBitmap.py
2 from wxPython
.wx
import *
6 #----------------------------------------------------------------------
8 class TestPanel(wxPanel
):
9 def __init__(self
, parent
, log
):
10 wxPanel
.__init
__(self
, parent
, -1)
14 wxStaticText(self
, -1, "This is a wxStaticBitmap.", wxPoint(45, 15))
16 bmp
= images
.getTest2Bitmap()
17 mask
= wxMaskColour(bmp
, wxBLUE
)
19 wxStaticBitmap(self
, -1, bmp
, wxPoint(80, 50),
20 wxSize(bmp
.GetWidth(), bmp
.GetHeight()))
22 bmp
= images
.getRobinBitmap()
23 wxStaticBitmap(self
, -1, bmp
, (80, 150))
25 wxStaticText(self
, -1, "Hey, if Ousterhout can do it, so can I.",
29 #----------------------------------------------------------------------
31 def runTest(frame
, nb
, log
):
32 win
= TestPanel(nb
, log
)
35 #----------------------------------------------------------------------
46 if __name__
== '__main__':
49 run
.main(['', os
.path
.basename(sys
.argv
[0])])