Cursor image on Linux

Does anyone know if there is a way to make a custom cursor look as it
actually does on linux? When I run my custom cursors in Windows they
are identical but when I run it on Linux it is normally a blobbed out
dark color with only the shape in place.

I am using the same syntax as in Cursor.py in 2.6 demo

Thanks,

-Cole

It works for me. How are you doing it?

Here's my code to create a Cursor:

             img = Resources.getMagPlusImage()
             img.SetOptionInt(wx.IMAGE_OPTION_CUR_HOTSPOT_X, 9)
             img.SetOptionInt(wx.IMAGE_OPTION_CUR_HOTSPOT_Y, 9)
             self.MagPlusCursor = wx.CursorFromImage(img)

then to use it:

                 self.SetCursor(self.MagPlusCursor)

And here is a piece of Resources.py, generated from a transparent PNG by img2py:

def getMagPlusData():
     return zlib.decompress(
'x\xda\x01*\x01\xd5\xfe\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00\x18\
\x00\x00\x00\x18\x08\x06\x00\x00\x00\xe0w=\xf8\x00\x00\x00\x04sBIT\x08\x08\
\x08\x08|\x08d\x88\x00\x00\x00\xe1IDATx\x9c\xb5U\xd1\x0e\xc4 \x08\xa3n\xff\
\xff\xc5\xdb\xb8\xa7\xee<\x04\x86gFb\xb2\x88\xb6\x14\x90\x01m\x937m\x8f\x1c\
\xd7yh\xe4k\xdb\x8e*\x01<\x05\x04\x07F\x1cU\x9d"\x19\x14\\\xe7\xa1\x1e\xf07"\
\x90H+$?\x04\x16\x9c\xd1z\x04\x00J$m\x06\xdc\xee\x03Hku\x13\xd8C\x16\x84+"O\
\x1b\xa2\x07\xca"\xb7\xc6sY\xbdD\x926\xf5.\xce\x06!\xd2)x\xcb^\'\x08S\xe4\
\xe5x&5\xb4[A\xb5h\xb4j=\x9a\xc8\xf8\xecm\xd4\\\x9e\xdf\xbb?\x10\xf0P\x06\
\x12\xed?=\xb6a\xd8=\xcd\xa2\xc8T\xd5U2t\x11\x95d\xa3"\x9aQ\x9e\x12\xb7M\x19\
I\x9f\xff\x1e\xd8\xa63#q\xff\x07U\x8b\xd2\xd9\xa7k\xe9\xa1U\x94,\xbf\xe4\x88\
\xe4\xf6\xaf\x12x$}\x8a\xc2Q\xf1\'\x89\xf2\x9b\xfbKE\xae\xd8\x07+\xd2\xa7c\
\xdf\x0e\xc3D\x00\x00\x00\x00IEND\xaeB`\x82\xe2ovy' )

def getMagPlusBitmap():
     return BitmapFromImage(getMagPlusImage())

def getMagPlusImage():
     stream = cStringIO.StringIO(getMagPlusData())
     return ImageFromStream(stream)

-Chris

Harris, Cole wrote:

ยทยทยท

Does anyone know if there is a way to make a custom cursor look as it
actually does on linux? When I run my custom cursors in Windows they
are identical but when I run it on Linux it is normally a blobbed out
dark color with only the shape in place.

I am using the same syntax as in Cursor.py in 2.6 demo

Thanks,

-Cole

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

--
Christopher Barker, Ph.D.
Oceanographer
                                         
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov