def _update_drawable(self): # We can get there after context has been disposed, in which case # just do nothing. if not self._agl_context: return agl.aglUpdateContext(self._agl_context) _aglcheck() # Need a redraw self.dispatch_event('on_expose')
def update_geometry(self): agl.aglUpdateContext(self._context) _aglcheck()