]> git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/wxStaticBitmap.py
removed case conflicting file
[wxWidgets.git] / wxPython / demo / wxStaticBitmap.py
1
2 from wxPython.wx import *
3
4 import string
5
6 #----------------------------------------------------------------------
7
8 class TestPanel(wxPanel):
9 def __init__(self, parent, log):
10 wxPanel.__init__(self, parent, -1)
11 self.log = log
12 self.count = 0
13
14 wxStaticText(self, -1, "This is a wxStaticBitmap.", wxPoint(45, 15))
15
16 bmp = wxBitmap('bitmaps/test2.bmp', wxBITMAP_TYPE_BMP)
17 mask = wxMaskColour(bmp, wxBLUE)
18 bmp.SetMask(mask)
19 wxStaticBitmap(self, -1, bmp, wxPoint(80, 50),
20 wxSize(bmp.GetWidth(), bmp.GetHeight()))
21
22 bmp = wxBitmap('bitmaps/robin.jpg', wxBITMAP_TYPE_JPEG)
23 wxStaticBitmap(self, -1, bmp, (80, 150))
24
25 wxStaticText(self, -1, "Hey, if Ousterhout can do it, so can I.",
26 (200, 175))
27
28
29 #----------------------------------------------------------------------
30
31 def runTest(frame, nb, log):
32 win = TestPanel(nb, log)
33 return win
34
35 #----------------------------------------------------------------------
36
37
38
39
40
41
42
43
44
45
46 overview = """\
47 """