]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/demo/wxStaticBitmap.py
it is now possible to add custom buttons into wxHtmlHelpFrame's toolbar
[wxWidgets.git] / utils / wxPython / demo / wxStaticBitmap.py
CommitLineData
cf694132
RD
1
2from wxPython.wx import *
3
4import string
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
16 bmp = wxBitmap('bitmaps/test2.bmp', wxBITMAP_TYPE_BMP)
17 wxStaticBitmap(self, -1, bmp, wxPoint(80, 50),
18 wxSize(bmp.GetWidth(), bmp.GetHeight()))
19
20
21
22
23#----------------------------------------------------------------------
24
25def runTest(frame, nb, log):
26 win = TestPanel(nb, log)
27 return win
28
29#----------------------------------------------------------------------
30
31
32
33
34
35
36
37
38
39
40overview = """\
41"""