Python 无法使用RstDocument部署kivy应用程序
我在使用RstDocument部署Kivy应用程序时遇到问题。它在PC上运行良好。如果我使用Label而不是RstDocument,我可以部署它,但在后一种情况下它会停止Python 无法使用RstDocument部署kivy应用程序,python,python-3.x,kivy,restructuredtext,Python,Python 3.x,Kivy,Restructuredtext,我在使用RstDocument部署Kivy应用程序时遇到问题。它在PC上运行良好。如果我使用Label而不是RstDocument,我可以部署它,但在后一种情况下它会停止 import kivy from kivy.app import App from kivy.uix.screenmanager import Screen import configparser class MainFrame(Screen): def __init__(self, **kwargs):
import kivy
from kivy.app import App
from kivy.uix.screenmanager import Screen
import configparser
class MainFrame(Screen):
def __init__(self, **kwargs):
super(MainFrame, self).__init__(**kwargs)
pass
def on_quit_button_click(self):
quit()
class BasicApp(App):
def build(self):
return MainFrame()
pass
if __name__ == '__main__':
BasicApp().run()
具有以下基本电压
<MainFrame>:
BoxLayout:
RstDocument:
#Label:
text: 'Hello *world*!'
Button:
text: 'Click to quit'
on_press: root.on_quit_button_click()
Buildozer.spec
通过在buildozer的需求中添加docutils,我可以在Acer Android平板电脑上运行带有rstDocument的Kivy应用程序
requirements = kivy, configparser, docutils
谢谢你,我从来没有考虑过要求。有没有我遗漏的相关文档?没有任何相关文档,你也没有遗漏。
requirements = kivy, configparser, docutils