]> git.saurik.com Git - wxWidgets.git/blame - wxPython/wx/lib/editor/images.py
some methods missing wxPyBeginBlockThreads/wxPyEndBlockThreads
[wxWidgets.git] / wxPython / wx / lib / editor / images.py
CommitLineData
1fded56b 1
d14a1e28
RD
2# images converted with wxPython's img2py.py tool
3
b881fc78
RD
4# 12/14/2003 - Jeff Grimmett (grimmtooth@softhome.net)
5#
6# o 2.5 compatability update.
7#
8
9import cStringIO
10import wx
d14a1e28
RD
11
12##----------- Common Functions
13
14def GetBitmap(ImageData):
b881fc78 15 return wx.BitmapFromImage(GetImage(ImageData))
d14a1e28
RD
16
17def GetImage(ImageData):
18 stream = cStringIO.StringIO(ImageData)
b881fc78 19 return wx.ImageFromStream(stream)
d14a1e28
RD
20
21##----------- Image Data
22
23EofImageData = \
24'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00\x07\x00\x00\x00\x07\x08\x06\
25\x00\x00\x00\xc4RW\xd3\x00\x00\x00\x04sBIT\x08\x08\x08\x08|\x08d\x88\x00\x00\
26\x00:IDATx\x9c]\x8e\xc1\r\x000\x08\x02\xc5\tn\xff)\xdd\xa0}\xd1`\xf9(\x9c\t\
27\n(kf\x0e \xfbN\x90\xf3\xc1\x0c\xd2\xab\xaa\x16Huv\xa4\x00\xb5\x97\x1f\xac\
28\x87\x1c\xe4\xe1\x05`2\x15\x9e\xc54\xca\xb4\x00\x00\x00\x00IEND\xaeB`\x82'
29
30
31
1fded56b 32