我的pyglet窗口无法显示文字,求帮忙!
import pyglet
window = pyglet.window.Window()
label = pyglet.text.Label('Hello, world',
font_name='Times New Roman',
font_size=36,
x=window.width//2, y=window.height//2,
anchor_x='center', anchor_y='center')
@window.event
def on_draw():
window.clear()
label.draw()
pyglet.app.run()
这是官方给出的代码,实在不知道怎么办。
https://www.jianshu.com/p/4340a1199119
驱动的问题,显卡太老了。