from kivy.config import Config
Config.set('input', 'mouse', 'mouse,multitouch_on_demand')
If I comment it out everything runs fine again.
I added that statement (without understanding what it does) to solve the problem of random red dots appearing on the gui - which it did.
Here is the link to the issue and solution https://stackoverflow.com/questions/12692851/why-does-right-clicking-create-an-orange-dot-in-the-center-of-the-circle
So is there a better way to stop the random red dots that won't break spinners in Android?
--
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/vJytKTa99FA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/552b0f74-cbe7-4a21-a005-2bb082ef846fn%40googlegroups.com.
To disable the multi-touch on Windows and Mac I use:
Config.set('input', 'mouse', 'mouse,disable_multitouch')
The red dot is part of the multi-touch simulation. Disabling multi-touch for the mouse removes the red dot.
I have not done any android programming. Does the touch on Android get reported to kivy as a mouse?
From: Bill Marriott
Sent: Sunday, December 18, 2022 9:01 AM
To: kivy-...@googlegroups.com
Subject: Re: [kivy-users] Kivy spinner not working - but Only in Android
Update on this.
Through trial and error I found that the source of my problem is this statement in main:
from kivy.config import Config
Config.set('input', 'mouse', 'mouse,multitouch_on_demand')
If I comment it out everything runs fine again.
I added that statement (without understanding what it does) to solve the problem of random red dots appearing on the gui - which it did.
Here is the link to the issue and solution https://stackoverflow.com/questions/12692851/why-does-right-clicking-create-an-orange-dot-in-the-center-of-the-circle
So is there a better way to stop the random red dots that won't break spinners in Android?
On Tue, Dec 13, 2022 at 11:18 AM MrBillium <bilm...@gmail.com> wrote:
I have a basic spinner in a screen to choose theme colors. It works fine in Windows.
I click the spinner widget and on release, the other spinner options are displayed. I can then click & choose any of the options to hide the rest.
It works fine in Windows.
But, when running the app in Android, touching the spinner and releasing displays the option list just for a split-second ( one frame perhaps?). There are no errors and I see nothing in logcat.
Any ideas what might be happening?
from kivy.uix.spinner import Spinner
class ThemeSpinner(Spinner):
def __init__(self, **kwargs):
super().__init__(**kwargs)
self.app = MDApp.get_running_app()
self.values = ['Red', 'Pink', 'Purple', 'DeepPurple']
self.text = 'Choose Theme'
self.bind(text=self.choose)
def choose(self, obj, txt):
logger.debug(f'spinner text = {txt}')
self.app.theme_cls.primary_palette = txt
--
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/vJytKTa99FA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/552b0f74-cbe7-4a21-a005-2bb082ef846fn%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/CAN5ZQKucU-9QvLK4Hv9m%2Bpj9ztFDk0M4TVgRZw97SrHGOccf7w%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/df8dbc4f-bf6c-4845-9889-9ce00888007dn%40googlegroups.com.