1. <legend id='IPoUo'><style id='IPoUo'><dir id='IPoUo'><q id='IPoUo'></q></dir></style></legend>

      <bdo id='IPoUo'></bdo><ul id='IPoUo'></ul>

    <tfoot id='IPoUo'></tfoot>
  2. <small id='IPoUo'></small><noframes id='IPoUo'>

    <i id='IPoUo'><tr id='IPoUo'><dt id='IPoUo'><q id='IPoUo'><span id='IPoUo'><b id='IPoUo'><form id='IPoUo'><ins id='IPoUo'></ins><ul id='IPoUo'></ul><sub id='IPoUo'></sub></form><legend id='IPoUo'></legend><bdo id='IPoUo'><pre id='IPoUo'><center id='IPoUo'></center></pre></bdo></b><th id='IPoUo'></th></span></q></dt></tr></i><div id='IPoUo'><tfoot id='IPoUo'></tfoot><dl id='IPoUo'><fieldset id='IPoUo'></fieldset></dl></div>

    1. 为什么右键单击会在圆圈中心创建一个橙色点?

      时间:2023-10-10

        <tbody id='nZQ3x'></tbody>
      <legend id='nZQ3x'><style id='nZQ3x'><dir id='nZQ3x'><q id='nZQ3x'></q></dir></style></legend>

        <small id='nZQ3x'></small><noframes id='nZQ3x'>

        <i id='nZQ3x'><tr id='nZQ3x'><dt id='nZQ3x'><q id='nZQ3x'><span id='nZQ3x'><b id='nZQ3x'><form id='nZQ3x'><ins id='nZQ3x'></ins><ul id='nZQ3x'></ul><sub id='nZQ3x'></sub></form><legend id='nZQ3x'></legend><bdo id='nZQ3x'><pre id='nZQ3x'><center id='nZQ3x'></center></pre></bdo></b><th id='nZQ3x'></th></span></q></dt></tr></i><div id='nZQ3x'><tfoot id='nZQ3x'></tfoot><dl id='nZQ3x'><fieldset id='nZQ3x'></fieldset></dl></div>
      • <tfoot id='nZQ3x'></tfoot>

            <bdo id='nZQ3x'></bdo><ul id='nZQ3x'></ul>

                本文介绍了为什么右键单击会在圆圈中心创建一个橙色点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                为什么kivy中的第一个小部件示例会导致中间出现橙色圆圈右击画布时是黄色的,左击时是纯黄色的?

                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 click?

                from kivy.app import App
                from kivy.uix.widget import Widget
                from kivy.graphics import Color, Ellipse
                
                class MyPaintWidget(Widget):
                    def on_touch_down(self, touch):
                        with self.canvas:
                            Color(1, 1, 0)
                            d = 30.
                            Ellipse(pos=(touch.x - d/2, touch.y - d/2), size=(d, d))
                
                
                class MyPaintApp(App):
                    def build(self):
                        return MyPaintWidget()
                
                
                if __name__ == '__main__':
                    MyPaintApp().run()
                

                推荐答案

                要禁用多点触控仿真,请在导入任何其他 kivy 模块之前将其添加到包含 main 函数的源文件中:

                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')
                

                这篇关于为什么右键单击会在圆圈中心创建一个橙色点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:Kivy:获取小部件 ID 并通过唯一属性访问小部件 下一篇:如何使 LAN 客户端可以发现服务器

                相关文章

                最新文章

                <i id='LLXwC'><tr id='LLXwC'><dt id='LLXwC'><q id='LLXwC'><span id='LLXwC'><b id='LLXwC'><form id='LLXwC'><ins id='LLXwC'></ins><ul id='LLXwC'></ul><sub id='LLXwC'></sub></form><legend id='LLXwC'></legend><bdo id='LLXwC'><pre id='LLXwC'><center id='LLXwC'></center></pre></bdo></b><th id='LLXwC'></th></span></q></dt></tr></i><div id='LLXwC'><tfoot id='LLXwC'></tfoot><dl id='LLXwC'><fieldset id='LLXwC'></fieldset></dl></div>

                <small id='LLXwC'></small><noframes id='LLXwC'>

                1. <legend id='LLXwC'><style id='LLXwC'><dir id='LLXwC'><q id='LLXwC'></q></dir></style></legend>

                      <bdo id='LLXwC'></bdo><ul id='LLXwC'></ul>

                    <tfoot id='LLXwC'></tfoot>