In article <[EMAIL PROTECTED]>,
 Michael Lange <[EMAIL PROTECTED]> wrote:

> You have to use a tuple instead of a string (at least if you want to use a 
> two-colored cursor), like this:
> 
> mycursor = ('@/usr/X11R6/include/X11/bitmaps/cntr_ptr', 
> '/usr/X11R6/include/X11/bitmaps/cntr_ptrmsk', 'black', white')
> t.configure(cursor=mycursor)

Thanks everybody for all the help.

In summary:
- unix, MacOS X and Windows each have a different required file format 
(the standard format for cursors on that platform). This makes 
cross-platform cursors in Tkinter a lot of work -- more than I'm ready 
to do right now.

- Unix requirements:
  - specify an xbm format file path plus at least a foreground color
    (a fancier form allows a mask and background color as well);
  - the xbm file must include hotspot info
  - the multiple args must be in a tuple

It is conceivable that if one wrote a C interface to 
Tk_GetCursorFromData, then one form of data might be acceptable to all 
platforms. I'm not ready to try that yet.

Regards,

-- Russell

_______________________________________________
Tkinter-discuss mailing list
[email protected]
http://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to