Why does right-clicking create an orange dot in the center of the circle?

前端 未结 2 1181
轻奢々
轻奢々 2020-12-29 20:35

Why does the first widget example in kivy lead to an orange circle in the middle of the yellow one when you right click on the canvas and a pure yellow one when you left cli

相关标签:
2条回答
  • 2020-12-29 20:48

    It's multitouch emulation, you can see how to disable it here

    http://kivy.org/docs/api-kivy.input.providers.mouse.html

    0 讨论(0)
  • 2020-12-29 20:57

    To disable multi-touch emulation, add this to your source file containing your main function, before any other kivy modules are imported:

    from kivy.config import Config
    Config.set('input', 'mouse', 'mouse,multitouch_on_demand')
    
    0 讨论(0)
提交回复
热议问题