]> git.saurik.com Git - wxWidgets.git/blame - wxPython/demo/wxStaticBitmap.py
started writing wxDisplay sample
[wxWidgets.git] / wxPython / demo / wxStaticBitmap.py
CommitLineData
cf694132
RD
1
2from wxPython.wx import *
6c5ae2d2 3from Main import opj
cf694132
RD
4
5import string
96bfd053 6import images
cf694132
RD
7
8#----------------------------------------------------------------------
9
10class TestPanel(wxPanel):
11 def __init__(self, parent, log):
12 wxPanel.__init__(self, parent, -1)
13 self.log = log
14 self.count = 0
15
16 wxStaticText(self, -1, "This is a wxStaticBitmap.", wxPoint(45, 15))
17
96bfd053 18 bmp = images.getTest2Bitmap()
1b62f00d
RD
19 mask = wxMaskColour(bmp, wxBLUE)
20 bmp.SetMask(mask)
cf694132
RD
21 wxStaticBitmap(self, -1, bmp, wxPoint(80, 50),
22 wxSize(bmp.GetWidth(), bmp.GetHeight()))
23
afb810d9 24 bmp = images.getRobinBitmap()
1b62f00d 25 wxStaticBitmap(self, -1, bmp, (80, 150))
cf694132 26
1b62f00d
RD
27 wxStaticText(self, -1, "Hey, if Ousterhout can do it, so can I.",
28 (200, 175))
cf694132
RD
29
30
31#----------------------------------------------------------------------
32
33def runTest(frame, nb, log):
34 win = TestPanel(nb, log)
35 return win
36
37#----------------------------------------------------------------------
38
39
40
41
42
43
44
45
46
47
48overview = """\
49"""