import kivy
from kivy.clock import Clock
from functools import partial
import main as m
kivy.require("1.10.0")
from kivy.lang.builder import Builder
from kivy.app import App
from kivy.uix.image import Image
from kivy.uix.anchorlayout import AnchorLayout
from kivy.core.window import Window
from kivy.uix.popup import Popup
from kivy.core.window import Window
Show_Func = Window.show
Window.size = (300, 100)
Window.borderless = True
Window.left = 1620
Window.top = 140
x = Builder.load_string("""
<GIF>:
Image:
id: img_gif
source: '1.gif'
anim_loop: 0
""")
class SampleApp(App):
def build(self):
return x
Clock.schedule_once(partial(m.Running_in_background, Show_Func),0.1)
if __name__ == '__main__':
SampleApp().run()
当窗口显示为全白色时,10秒后,它开始不响应。我在谷歌上找不到答案。(谢谢你的帮助)