Sep-15-2020, 10:46 PM
Ummm... I was trying for clock here the code:
import pyglet from pyglet import clock from time import strftime pyglet.font.add_file('/home/pi/.fonts/digital-7.ttf') window = pyglet.window.Window() window.set_fullscreen(False) while True: time_now=strftime('%H:%M:%S %P') label = pyglet.text.Label(time_now, font_name='Digital-7', font_size=300, 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()Can do that?