问题描述
从QPython启动运行,当我遇到一些麻烦我Kivy的应用程序。
I'm having some trouble with my Kivy apps when run from the QPython launcher.
如果我运行标准乒乓球的例子,我看不到任何输出。
If I run the standard pong example, I don't see any output.
这用来工作。
所以,我怀疑QPython,或Kivy迈出了升级,这已经打破了一些东西。
This used to work.So, I suspect that QPython, or Kivy has taken an 'upgrade' which has broken something.
在过去,我将能够向下滑动即可查看日志输出图标。
但是,现在已经不再存在。
干得好QPython,Kivy !!!!
In the past I would be able to swipe down to see the log output icon.But, now that's no longer there.Well done QPython, Kivy !!!!
那么,有什么变化?
而且,我怎么检查程序日志输出,看看它为什么不再运行?
So, what's changed?And, how am I supposed to check program log output to see why it no longer runs?
问候
尼克
推荐答案
至于我回复赞福德对丢失的日志后之前,打消了我的答案是:我做了对qpython的有关问题和开发GitHub的一个问题已经回答。 无日志信息是一个错误,他应该在下次更新中删除。作为一个临时的解决办法,我重新路由我的输出和错误来.run.log:
As I replied to Zaphod's post on the missing log before my answer was removed: I've made an issue on qpython's github about that problem and the dev have answered. The "no log information" is a bug and he should remove it in the next update. As a temporary fix, I reroute my stdout and stderr to .run.log:
import sys
f=open('.run.log','w')
f.close()
sys.stdout=open('.run.log','a')
sys.stderr=open('.run.log','a')
洛朗
这篇关于在Android摩托3G手机Kivy QPython应用程序 - 没有日志输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!