kivy 任何脚本都不会在 Ubuntu 中打开窗口

kivy 任何脚本都不会在 Ubuntu 中打开窗口

我之前在 stack owerflow 上问过这个问题,但我猜我的问题首先是 ubuntu 问题。当我在 vitualenv 中执行 kivy 脚本(例如 hello world)时,脚本运行没有错误,但我看不到打开的窗口,任务栏中只有一个 Python 图标,而且无法打开顶部窗口。我将附上终端输出和图标。我猜配置有问题:我可以得到关于如何解决问题的提示吗?

在此处输入图片描述

[INFO   ] [Logger      ] Record log in /home/claus/.kivy/logs/kivy_22-02-18_1.txt
[INFO   ] [Kivy        ] v2.0.0
[INFO   ] [Kivy        ] Installed at "/home/claus/Python_Programm/Python_Ingo/kivy_venv/lib/python3.8/site-packages/kivy/__init__.py"
[INFO   ] [Python      ] v3.8.10 (default, Nov 26 2021, 20:14:08) 
[GCC 9.3.0]
[INFO   ] [Python      ] Interpreter at "/home/claus/Python_Programm/Python_Ingo/kivy_venv/bin/python3"
[INFO   ] [Factory     ] 186 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_pil (img_ffpyplayer ignored)
[INFO   ] [Text        ] Provider: sdl2
[INFO   ] [Window      ] Provider: sdl2
[INFO   ] [GL          ] Using the "OpenGL" graphics system
[INFO   ] [GL          ] Backend used <sdl2>
[INFO   ] [GL          ] OpenGL version <b'3.1 Mesa 21.2.6'>
[INFO   ] [GL          ] OpenGL vendor <b'X.Org'>
[INFO   ] [GL          ] OpenGL renderer <b'AMD REDWOOD (DRM 2.50.0 / 5.4.0-100-generic, LLVM 12.0.0)'>
[INFO   ] [GL          ] OpenGL parsed version: 3, 1
[INFO   ] [GL          ] Shading version <b'1.40'>
[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   ] [ProbeSysfs  ] device match: /dev/input/event6
[INFO   ] [MTD         ] Read event from </dev/input/event6>
[INFO   ] [Base        ] Start application main loop
[INFO   ] [GL          ] NPOT texture support is available
[INFO   ] [MTD         ] </dev/input/event6> range position X is 0 - 2000
[INFO   ] [MTD         ] </dev/input/event6> range position Y is 0 - 1400
[INFO   ] [MTD         ] </dev/input/event6> range touch major is 0 - 0
[INFO   ] [MTD         ] </dev/input/event6> range touch minor is 0 - 0
[INFO   ] [MTD         ] </dev/input/event6> range pressure is 0 - 255
[INFO   ] [MTD         ] </dev/input/event6> axes invertion: X is 0, Y is 0
[INFO   ] [MTD         ] </dev/input/event6> rotation set to 0
[INFO   ] [Base        ] Leaving application in progress...

相关内容