]> git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/wxStaticBitmap.py
Added VC++ project files for remaining Gizmo samples
[wxWidgets.git] / wxPython / demo / wxStaticBitmap.py
1
2 from wxPython.wx import *
3 from Main import opj
4
5 import string
6 import images
7
8 #----------------------------------------------------------------------
9
10 class 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
18 bmp = images.getTest2Bitmap()
19 mask = wxMaskColour(bmp, wxBLUE)
20 bmp.SetMask(mask)
21 wxStaticBitmap(self, -1, bmp, wxPoint(80, 50),
22 wxSize(bmp.GetWidth(), bmp.GetHeight()))
23
24 bmp = images.getRobinBitmap()
25 wxStaticBitmap(self, -1, bmp, (80, 150))
26
27 wxStaticText(self, -1, "Hey, if Ousterhout can do it, so can I.",
28 (200, 175))
29
30
31 #----------------------------------------------------------------------
32
33 def runTest(frame, nb, log):
34 win = TestPanel(nb, log)
35 return win
36
37 #----------------------------------------------------------------------
38
39
40
41
42
43
44
45
46
47
48 overview = """\
49 """