Attachment 'EmbeddedIconData.py'
Download 1 import cPickle, zlib
2 import wx
3
4 #------------------------------------------------------------------------------
5
6 # The data for the icons. These functions were generated by img2py,
7 # which comes with the wxPython distribution in the tools directory.
8 # It is a pretty handy way to embed icons in your Python code.
9
10 def GetHandData():
11 return cPickle.loads(
12 'x\xda\xd3\xc8)0\xe4\nV72T\x00!\x05Cu\xae\xc4`u=\x85d\x05\xa7\x9c\xc4\xe4l0O\
13 \x01\xc8S\xb6t\x06A(\x1f\x0b\xa0\xa9\x8c\x9e\x1e6\x19\xa0\xa8\x1e\x88\xd4C\
14 \x97\xd1\x83\xe8\x80 \x9c2zh\xa6\xc1\x11X\n\xab\x8c\x02\x8a\x0cD!\x92\x12\
15 \x98\x8c\x1e\x8a\x8b\xd1d\x14\xf4\x90%\x90LC\xf6\xbf\x1e\xba\xab\x91%\xd0\
16 \xdc\x86C\x06\xd9m\xe8!\xaa\x87S\x86\x1a1\xa7\x07\x00v\x0f[\x17'.decode('zlib') )
17
18 def GetHandBitmap():
19 return wx.BitmapFromXPMData(GetHandData())
20
21 def GetHandImage():
22 return wx.ImageFromBitmap(GetHandBitmap())
23
24 #----------------------------------------------------------------------
25
26 def GetPlusData():
27 return cPickle.loads(
28 'x\xda\xd3\xc8)0\xe4\nV72T\x00!\x05Cu\xae\xc4`u=\x85d\x05\xa7\x9c\xc4\xe4l0O\
29 \x01\xc8S\xb6t\x06A(\x1f\x0b RF\x0f\x08\xb0\xc9@D\xe1r\x08\x19\xb8j=l2`\r\
30 \xe82HF\xe9a\xc8\xe8\xe9A\x9c@\x8a\x0c\x0e\xd3p\xbb\x00\x8f\xab\xe1>\xd5\xd3\
31 \xc3\x15:P)l!\n\x91\xc2\x1a\xd6`)\xec\xb1\x00\x92\xc2\x11?\xb8e\x88\x8fSt\
32 \x19=\x00\x82\x16[\xf7'.decode('zlib') )
33
34 def GetPlusBitmap():
35 return wx.BitmapFromXPMData(GetPlusData())
36
37 def GetPlusImage():
38 return wx.ImageFromBitmap(GetPlusBitmap())
39
40 #----------------------------------------------------------------------
41
42 def GetMinusData():
43 return cPickle.loads(
44 'x\xda\xd3\xc8)0\xe4\nV72T\x00!\x05Cu\xae\xc4`u=\x85d\x05\xa7\x9c\xc4\xe4l0O\
45 \x01\xc8S\xb6t\x06A(\x1f\x0b RF\x0f\x08\xb0\xc9@D\xe1r\x08\x19\xb8j=\xa2e\
46 \x10\x16@\x99\xc82zz\x10\'\x90"\x83\xc34r\xdc\x86\xf0\xa9\x9e\x1e\xae\xd0\
47 \x81Ja\x0bQ\x88\x14\xd6\xb0\x06Ka\x8f\x05\x90\x14\x8e\xf8\xc1-C|\x9c\xa2\xcb\
48 \xe8\x01\x00\xed\x0f[\x87'.decode('zlib') )
49
50 def GetMinusBitmap():
51 return wx.BitmapFromXPMData(GetMinusData())
52
53 def GetMinusImage():
54 return wx.ImageFromBitmap(GetMinusBitmap())
55
56 def GetSeparatorData():
57 return cPickle.loads(
58 'x\xda\xd3\xc8)0\xe4\nV74P02T0R0T\xe7J\x0cV\xd7SHVPvs3\x00\x020_\x01\xc8\xf7\
59 \xcb\xcfK\x85r\x14\x14\xf4\xf4@\xe4(\x97$\xae\x1e\x00S\xca=4'.decode('zlib') )
60
61 def GetSeparatorBitmap():
62 return wx.BitmapFromXPMData(GetSeparatorData())
63
64 def GetSeparatorImage():
65 return wx.ImageFromBitmap(GetSeparatorBitmap())
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.