[python-win32] Using Win32 API to get around Tkinter limitations?

python at bdurham.com python at bdurham.com
Fri Oct 29 17:22:59 CEST 2010


Eric,

The short answer (for people searching the archives) is that the
cursor='@\path\to\cursor_file.cur' technique DOES work exactly as
advertised ... when used in a script run outside of IDLE (I know,
I know ... never test Tkinter code in IDLE!).

> Did you try it?

Yes. Running Python 2.7 (32-bit) on Windows 7 (64-bit), from
within IDLE, I received the following traceback:

Traceback (most recent call last):
File "<pyshell#82>", line 1, in <module>
widget.config( cursor='@help.cur' )
File "C:\Python27\lib\lib-tk\Tkinter.py", line 1202, in configure
return self._configure('configure', cnf, kw)
File "C:\Python27\lib\lib-tk\Tkinter.py", line 1193, in
_configure
self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
TclError: bad cursor spec "@help.cur"

Thanks for your feedback!

Malcolm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20101029/87c5733e/attachment.html>


More information about the python-win32 mailing list