Re: busy mouse cursor for application

E <[email protected]> Thu, 28 Nov 2019 11:55:07 -0300
Newsgroups gmane.comp.python.tkinter
Message-ID <[email protected]>
El 28/11/2019 a las 09:59 a. m., Vasilis Vlachoudis escribió:
> Hi all,
> 
> how can I display the cursor as the watch for the whole application.
> When I set it on the toplevel window as
> self.toplevel.config(cursor="watch")
> it displays the cursor almost everywhere (I believe where the cursor is "")
> except for the widgets like Entry, Text that have the cursor="xterm" or anything
> that has a custom cursor.
> 
> Is there a way to set the "watch" for everything and restore it later on

Tk provides the command "tk busy" [1] which does what you want, but as 
far as I can see tkinter still doesn't ship it wrapped [2]. You can 
steal ideas from the links below. Also note this text in the manual page:
"""
PORTABILITY
Note that the tk busy command does not currently have any effect on OSX 
when Tk is built using Aqua support.
"""

[1] https://www.tcl-lang.org/man/tcl8.6/TkCmd/busy.htm
[2] https://bugs.python.org/issue28498


Regards
Emiliano