X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8b9a4190f70909de9568f45389e7aa3ecbc66b8a..0bdcd2f50750d235bff2766f3d03d7228aa88dff:/wxPython/wx/lib/editor/images.py?ds=sidebyside diff --git a/wxPython/wx/lib/editor/images.py b/wxPython/wx/lib/editor/images.py index cd85f44093..982a8c4fb3 100644 --- a/wxPython/wx/lib/editor/images.py +++ b/wxPython/wx/lib/editor/images.py @@ -1,8 +1,32 @@ -"""Renamer stub: provides a way to drop the wx prefix from wxPython objects.""" +# images converted with wxPython's img2py.py tool + +# 12/14/2003 - Jeff Grimmett (grimmtooth@softhome.net) +# +# o 2.5 compatability update. +# + +import cStringIO +import wx + +##----------- Common Functions + +def GetBitmap(ImageData): + return wx.BitmapFromImage(GetImage(ImageData)) + +def GetImage(ImageData): + stream = cStringIO.StringIO(ImageData) + return wx.ImageFromStream(stream) + +##----------- Image Data + +EofImageData = \ +'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00\x07\x00\x00\x00\x07\x08\x06\ +\x00\x00\x00\xc4RW\xd3\x00\x00\x00\x04sBIT\x08\x08\x08\x08|\x08d\x88\x00\x00\ +\x00:IDATx\x9c]\x8e\xc1\r\x000\x08\x02\xc5\tn\xff)\xdd\xa0}\xd1`\xf9(\x9c\t\ +\n(kf\x0e \xfbN\x90\xf3\xc1\x0c\xd2\xab\xaa\x16Huv\xa4\x00\xb5\x97\x1f\xac\ +\x87\x1c\xe4\xe1\x05`2\x15\x9e\xc54\xca\xb4\x00\x00\x00\x00IEND\xaeB`\x82' + + + -from wx import _rename -from wxPython.lib.editor import images -_rename(globals(), images.__dict__, modulename='lib.editor.images') -del images -del _rename