当我在kivy中运行程序"Hello World"时,没有显示文字,为什么? [英] When i run the program 'Hello World' in kivy doesn't show me text ,WHY?

查看:303
本文介绍了当我在kivy中运行程序"Hello World"时,没有显示文字,为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所有信息告诉我:

我不知道该添加到路径

运行:

请告诉我一切,完美.

''''python

'''python

import kivy
from kivy.app import App
from kivy.uix.label import Label

class A(App):
    def build(self):
        return Label(text='Hello world!')

A().run()

''' 运行程序和结果 '''控制台

''' Run the program and results '''console

[INFO   ] [Logger      ] Record log in C:\Users\1\.kivy\logs\kivy_19-07-02_6.txt
[INFO   ] [deps        ] Successfully imported "kivy_deps.gstreamer" 0.1.17
[INFO   ] [deps        ] Successfully imported "kivy_deps.glew" 0.1.12
[INFO   ] [deps        ] Successfully imported "kivy_deps.sdl2" 0.1.22
[INFO   ] [Kivy        ] v1.11.1
[INFO   ] [Kivy        ] Installed at "C:\Users\1\AppData\Roaming\Python\Python36\site-packages\kivy\__init__.py"
[INFO   ] [Python      ] v3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit (AMD64)]
[INFO   ] [Python      ] Interpreter at "C:\Program Files\Python36\pythonw.exe"
[INFO   ] [Factory     ] 184 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
[INFO   ] [Text        ] Provider: sdl2
[INFO   ] [Window      ] Provider: sdl2
[INFO   ] [Window      ] Activate GLES2/ANGLE context
[INFO   ] [GL          ] Using the "OpenGL" graphics system
[INFO   ] [GL          ] Backend used <angle_sdl2>
[INFO   ] [GL          ] OpenGL version <b"OpenGL ES 2.0 (ANGLE 2.1.0.b'')">
[INFO   ] [GL          ] OpenGL vendor <b'Google Inc.'>
[INFO   ] [GL          ] OpenGL renderer <b'ANGLE (AMD Radeon Series Direct3D11 vs_5_0 ps_5_0)'>
[INFO   ] [GL          ] OpenGL parsed version: 2, 0
[INFO   ] [GL          ] Shading version <b"OpenGL ES GLSL ES 1.00 (ANGLE 2.1.0.b'')">
[INFO   ] [GL          ] Texture max size <16384>
[INFO   ] [GL          ] Texture max units <16>
[INFO   ] [Window      ] auto add sdl2 input provider
[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
[INFO   ] [Base        ] Start application main loop
[INFO   ] [GL          ] NPOT texture support is available

'''

推荐答案

我尝试按原样运行代码,并且效果很好.

I tried to run the code as it is and it worked fine.

这篇关于当我在kivy中运行程序"Hello World"时,没有显示文字,为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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