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