Hiding the mouse cursor in Kivy 1.9

578 views
Skip to first unread message

Gareth Roberts

unread,
Sep 3, 2015, 4:06:42 PM9/3/15
to Kivy users support
Having set mactouch as the input device (Config.set('input', 'mouse', 'mactouch')) I'd like to hide the mouse cursor. However, apparently the following doesn't work in Kivy 1.9.1:

Config.set('graphics','show_cursor','0')

Editing the config.ini file directly doesn't help either. Does anyone know a way round this?

Thanks,

GR


stas.zy...@gmail.com

unread,
Sep 4, 2015, 4:21:51 AM9/4/15
to Kivy users support
It's a problem since the kivy core went from pygame to sdl2.
I posted a message and a solution some time ago.
https://groups.google.com/forum/#!searchin/kivy-users/hide$20cursor/kivy-users/BtOU_J4GPvQ/Fw77FkuIVmsJ
And I've created a ticket for it  https://github.com/kivy/kivy/issues/3441 and they claimed it to be fixed.
I don't know if it's released yet.
You might try the git version.

But the biggest problem I had/have is that when hiding the mouse is also disabled the touchscreen.
(see my post to the ML)
The other solution I had before kivy 1.9 was to replace the mouse image with a transparent image but that seems to be
broken in the new sdl2 approach in kivy 1.9.

eefvx

unread,
Sep 4, 2015, 5:51:27 AM9/4/15
to Kivy users support

it takes an int, use as : Config.set('graphics','show_cursor', 0) .
should work this way

Stas Zytkiewicz

unread,
Sep 4, 2015, 6:09:03 AM9/4/15
to kivy-...@googlegroups.com
On 04-09-15 07:22, eefvx wrote:
>
> it takes an int, use as : Config.set('graphics','show_cursor', 0) .
> should work this way

Nope.
Just tested it again with the latest deb from the kivy ppa,
1.9.0-3~stable0+201509020946~pkg69~ubuntu14.04.1
Get my text script from the closed ticket,
https://github.com/kivy/kivy/issues/3441
It still doesn't hide the mouse.

Does it work for you ??

>
> On Thursday, September 3, 2015 at 9:06:42 PM UTC+1, Gareth Roberts wrote:
>
> Having set mactouch as the input device (Config.set('input',
> 'mouse', 'mactouch')) I'd like to hide the mouse cursor. However,
> apparently the following doesn't work in Kivy 1.9.1:
>
> Config.set('graphics','show_cursor','0')
>
> Editing the config.ini file directly doesn't help either. Does
> anyone know a way round this?
>
> Thanks,
>
> GR
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Kivy users support" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/kivy-users/_XIstTbEP4o/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> kivy-users+...@googlegroups.com
> <mailto:kivy-users+...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

Gareth Roberts

unread,
Sep 4, 2015, 8:59:14 AM9/4/15
to Kivy users support
Yes, I actually tried it with an int first and then tried a string in case that was the problem. Neither works for me.

Gareth Roberts

unread,
Sep 4, 2015, 9:01:09 AM9/4/15
to Kivy users support
Yes, I saw this thread, including your comment that this solution stopped working...

eefvx

unread,
Sep 5, 2015, 2:32:46 AM9/5/15
to Kivy users support
it does, i used the latest version from git.
also the touchinput from the mouse is still working as usual since i don't have any other input device.

Stas

unread,
Sep 5, 2015, 2:35:34 AM9/5/15
to kivy-...@googlegroups.com, eefvx
Great, lets hope the changes are pushed to the binary releases soon.
Thanks for checking the git :-)
Regards,
Stas Zytkiewicz

Stas Zytkiewicz

unread,
Nov 19, 2015, 9:07:30 AM11/19/15
to kivy-...@googlegroups.com, eefvx
On 05-09-15 08:35, Stas wrote:
> Great, lets hope the changes are pushed to the binary releases soon.
> Thanks for checking the git :-)

Unfortunatly when the mouse pointer is hidden the touchscreen on all the
MSI
All-in-one models are disabled.
(AE2010, 2020, 2050, 2052, 202, 203 and even the AE-Flex prototype)
And as there's no pygame anymore in recent Kivy we can't use the
pygame.cursors.load_xbm
trick anymore to make the pointer "invisble"

Does anyone knows if we can change the mousepointer image in some way so
that
we can replace it by a empty image ?

stas.zy...@gmail.com

unread,
Nov 19, 2015, 9:59:01 AM11/19/15
to Kivy users support, zeiu...@gmail.com
BTW, I also created an issue at the kivy github
https://github.com/kivy/kivy/issues/3775
Reply all
Reply to author
Forward
0 new messages