X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6c5ae2d2a6f716e8a89b27579026b9d085f84191..0b9d8fe18e02e9d848d205c3f36812cd56fc1bcd:/wxPython/demo/wxStaticBitmap.py?ds=inline diff --git a/wxPython/demo/wxStaticBitmap.py b/wxPython/demo/wxStaticBitmap.py index 467f56d604..7dfc51722b 100644 --- a/wxPython/demo/wxStaticBitmap.py +++ b/wxPython/demo/wxStaticBitmap.py @@ -1,8 +1,6 @@ from wxPython.wx import * -from Main import opj -import string import images #---------------------------------------------------------------------- @@ -21,11 +19,7 @@ class TestPanel(wxPanel): wxStaticBitmap(self, -1, bmp, wxPoint(80, 50), wxSize(bmp.GetWidth(), bmp.GetHeight())) - # This one doesn't convert to the embedded format very well, - # (lots of colors so it explodes in size and takes a noticable - # amount of time to convert back to a bitmap.) So we'll just - # do it the old way - bmp = wxBitmap(opj('bitmaps/robin.jpg'), wxBITMAP_TYPE_JPEG) + bmp = images.getRobinBitmap() wxStaticBitmap(self, -1, bmp, (80, 150)) wxStaticText(self, -1, "Hey, if Ousterhout can do it, so can I.", @@ -44,10 +38,12 @@ def runTest(frame, nb, log): +overview = """\ +""" - - -overview = """\ -""" +if __name__ == '__main__': + import sys,os + import run + run.main(['', os.path.basename(sys.argv[0])])