class_docstr: Pyglet backend for Canvas abstract class.
class_docstr_tok: ["Pyglet","backend","for","Canvas","abstract","class","."]
code: def on_draw(self):
      # Is called by event loop after each event, whatever event ... really
      if not self._draw_ok:
          self._draw_ok = True
          self.our_draw_func()
  
imports: from __future__ import division
  from packaging.version import Version
  from time import sleep
  from ..base import BaseApplicationBackend, BaseCanvasBackend, BaseTimerBackend
  from ...util import keys
  from ...util.ptime import time
  from ...None import config
label_desc: Use image node_id 4 for calling the CanvasBackend obj's underlying member method code with example usage: obj.on_draw() without return types