X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6921cf96a017673c49edae865a01217ccb907fc2..19c35fa587f97cf83e2cb28afe76b8db85b36c9f:/wxPython/demo/images.py diff --git a/wxPython/demo/images.py b/wxPython/demo/images.py index bcc83bf655..c9c36d6e2b 100644 --- a/wxPython/demo/images.py +++ b/wxPython/demo/images.py @@ -3439,6 +3439,26 @@ def getCopyImage(): stream = cStringIO.StringIO(getCopyData()) return wxImageFromStream(stream) +#---------------------------------------------------------------------- +def getCopy2Data(): + return \ +'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00\x10\x00\x00\x00\x10\x08\x06\ +\x00\x00\x00\x1f\xf3\xffa\x00\x00\x00\x04sBIT\x08\x08\x08\x08|\x08d\x88\x00\ +\x00\x00\x9fIDATx\x9c\xa5\x93\xdb\x0e\x830\x0cC\xed\x84\xdfF\xeb\xb4\xef\xa6\ +\xde\x030z\t\x94\tK\x91z\xcb\x01\xbb*i\x8e\'\x9a\x00@yQ\xb4Is\x8e\x00\xb6\ +\x0f$Uu\x05\x0e\x01\x91$\r!\xa49\x94\x17I\x02\xc9_\xe3:Nq\x93}XL|\xeb\xe9\ +\x05\xa4p\rH\xa29h^[ Y\xd5\xb9\xb5\x17\x94gu\x19DA\x96\xe0c\xfe^\xcf\xe7Y\ +\x95\x05\x00M\xf5\x16Z;\x7f\xfdAd\xcf\xee\x1cj\xc1%|\xdan"LL\x19\xda\xe1}\ +\x90:\x00#\x95_l5\x04\xec\x89\x9f\xef?|\x8d\x97o\xe1\x8e\xbeJ\xfc\xb1\xde\ +\xf4x\xe1\x1d\x00\x00\x00\x00IEND\xaeB`\x82' + +def getCopy2Bitmap(): + return wxBitmapFromImage(getCopy2Image()) + +def getCopy2Image(): + stream = cStringIO.StringIO(getCopy2Data()) + return wxImageFromStream(stream) + #---------------------------------------------------------------------- def getPasteData(): return \