]> git.saurik.com Git - wxWidgets.git/blame - wxPython/demo/wxStaticBitmap.py
fixed extraneous scrolling when scrollbars are added/removed (patch 788026; bug 746618)
[wxWidgets.git] / wxPython / demo / wxStaticBitmap.py
CommitLineData
cf694132
RD
1
2from wxPython.wx import *
3
96bfd053 4import images
cf694132
RD
5
6#----------------------------------------------------------------------
7
8class 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
96bfd053 16 bmp = images.getTest2Bitmap()
1b62f00d
RD
17 mask = wxMaskColour(bmp, wxBLUE)
18 bmp.SetMask(mask)
cf694132
RD
19 wxStaticBitmap(self, -1, bmp, wxPoint(80, 50),
20 wxSize(bmp.GetWidth(), bmp.GetHeight()))
21
afb810d9 22 bmp = images.getRobinBitmap()
1b62f00d 23 wxStaticBitmap(self, -1, bmp, (80, 150))
cf694132 24
1b62f00d
RD
25 wxStaticText(self, -1, "Hey, if Ousterhout can do it, so can I.",
26 (200, 175))
cf694132
RD
27
28
29#----------------------------------------------------------------------
30
31def runTest(frame, nb, log):
32 win = TestPanel(nb, log)
33 return win
34
35#----------------------------------------------------------------------
36
37
38
39
40
1fded56b
RD
41overview = """\
42"""
cf694132
RD
43
44
45
1fded56b
RD
46if __name__ == '__main__':
47 import sys,os
48 import run
49 run.main(['', os.path.basename(sys.argv[0])])