- Caption
The window’s caption appears in its title bar and task bar icon (on Windows and some Linux window managers). You can set the caption during window creation or at any later time using the set_caption() method:
window = pyglet.window.Window(caption='Initial caption')
window.set_caption('A different caption')