]>
git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/demo/wxStaticBitmap.py
2 from wxPython
.wx
import *
6 #----------------------------------------------------------------------
8 class TestPanel(wxPanel
):
9 def __init__(self
, parent
, log
):
10 wxPanel
.__init
__(self
, parent
, -1)
14 wxStaticText(self
, -1, "This is a wxStaticBitmap.", wxPoint(45, 15))
16 bmp
= wxBitmap('bitmaps/test2.bmp', wxBITMAP_TYPE_BMP
)
17 wxStaticBitmap(self
, -1, bmp
, wxPoint(80, 50),
18 wxSize(bmp
.GetWidth(), bmp
.GetHeight()))
23 #----------------------------------------------------------------------
25 def runTest(frame
, nb
, log
):
26 win
= TestPanel(nb
, log
)
29 #----------------------------------------------------------------------