# -*- coding: utf-8 -*-
"""
Created on Thu Dec 20 08:48:05 2018
@author: Administrator
"""
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()
pyglet简单实例
最新推荐文章于 2022-06-13 12:03:49 发布