删除或替换在启动时kivy闪屏 [英] Remove or replace the kivy splash screen on startup

查看:153
本文介绍了删除或替换在启动时kivy闪屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的手机上启动我的应用程序(基于kivy),有1〜2秒钟时间,显示启动画面,说:正在载入,之前主窗口变得可见。

When I launch my app (based on kivy) on my phone, there is 1 ~ 2 seconds showing the splash screen, says 'Loading...', before the main window becomes visible.

我怎样才能在code(main.py),或在某处的配置删除此(我没有发现任何与此相关的配置(的 kivy.config )?难道这似乎与OpenGL或pygame的?

How can I remove this in the code(main.py) or somewhere in the config(I found no config related to this(kivy.config)? Does this seems to related to OpenGL or pygame?

推荐答案

这屏幕是蟒蛇换的Andr​​oid程序的一部分,不是你可以在你的应用程序kivy直接修改。

This screen is part of the python-for-android process, not something you can directly modify in your kivy app.

当你评论,你可以改变什么形象,显示与 - presplash为build.py 选项。如果使用buildozer,你会代替设置 presplash.filename 标记在buildozer.spec文件。

As you commented, you can change what image is displayed with the --presplash option for build.py. If using buildozer, you would instead set the presplash.filename token in your buildozer.spec file.

这也许可以通过深入研究蟒蛇换机器人莫名其妙修改的过程,但我从来没有见过这种讨论,我是否有可以进行任何实质性的改变很少的想法。现在的问题是,一些加载时间是在java应用程序初始化和蟒蛇/ kivy应用程序准备好做任何显示的是必不​​可少的。据我所知,你可以在你的Python文件中做的最好的是在执行尽可能少的计算尽可能你的建立方法。

It might be possible to modify the process somehow by delving into python-for-android, but I've never seen this discussed and I have very little idea of whether there are any real changes you can make. The problem is that some loading period is essential in between the java app initialising and the python/kivy app being ready do display anything. As far as I know, the best you can do in your python file is to perform as little computation as possible in your build method.

这篇关于删除或替换在启动时kivy闪屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆