Running Kivy on Linux xfce (chromebook) yields only black screen

别来无恙 提交于 2019-12-13 00:53:59

问题


somewhat new to Linux. Just set up a "dual boot" to XFCE ubuntu on my Chromebook. Installed Kivy and tried to set up the basic "Hello World" program.

Upon running the program from the terminal, I get either a black screen or a graphical glitch of whatever else is going on, on the desktop.

The terminal also displays a list of debug lines (I'm not used to this in Windows. Assuming this is standard.)

http://i.imgur.com/hQcHa4p.png?1 Here's what I'm looking at.

.py file

from kivy.app import App


class WeatherApp(App):
    pass

if __name__ == '__main__':
    WeatherApp().run()

.kv file

Label:
   text: "Hello World!"

Called from terminal with

python main.py

Am I doing something wrong?

来源:https://stackoverflow.com/questions/34665792/running-kivy-on-linux-xfce-chromebook-yields-only-black-screen

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!