简体   繁体   English

猕猴桃光标黑色背景

[英]Kivy cursor black background

I am using Kivy with python for my app. 我在我的应用程序中使用Kivy和python。 But there is black background on my cursor on Kivy window. 但是我在Kivy窗口上的光标上有黑色背景。

在此处输入图片说明

How can I fix it ? 我该如何解决?

I am using python3 on OSX 我在OSX上使用python3

UPDATE UPDATE

I have same issue with hello world application too. 你好世界应用程序也有同样的问题。

When mouse stays at same position about 10 seconds, black background disappears, but when leaving and entering again, same problem occures 当鼠标停留在同一位置大约10秒钟时,黑色背景消失,但是当再次进入并离开时,会出现相同的问题

After many retries I figured out the problem. 经过多次重试后,我发现了问题所在。 As @Mikhail Gerasimov said, it was thread issue. 正如@Mikhail Gerasimov所说,这是线程问题。 H had lot of calculations in main thread (it takes over 10s). H在主线程中进行了大量计算(花费了10多秒钟)。

After moving it to another thread, and let main thread empty, the problem with black background fixed. 将其移至另一线程后,让主线程为空,黑色背景的问题已修复。

Also I moved Kivy updates to another thread 我也将Kivy更新移到了另一个线程

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM