'Draw the window.'

def OnDraw(self, *args, **kwargs):

    self.pygletcontext.set_current()
    glClearColor(*self.color_background)
    glClear((GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT))
    self.draw_objects()
    self.canvas.SwapBuffers()
