def _use_accelerator(state):
 global _convert_agg_to_wx_image
 global _convert_agg_to_wx_bitmap
 if (getattr(wx, '__version__', '0.0')[0:3] < '2.8'):
  if (state and (_wxagg is not None)):
   _convert_agg_to_wx_image = _wxagg.convert_agg_to_wx_image
   _convert_agg_to_wx_bitmap = _wxagg.convert_agg_to_wx_bitmap
  else:
   _convert_agg_to_wx_image = _py_convert_agg_to_wx_image
   _convert_agg_to_wx_bitmap = _py_convert_agg_to_wx_bitmap
 else:
  _convert_agg_to_wx_image = _py_WX28_convert_agg_to_wx_image
  _convert_agg_to_wx_bitmap = _py_WX28_convert_agg_to_wx_bitmap

def _use_accelerator ( state ) : global _convert_agg_to_wx_image global _convert_agg_to_wx_bitmap if ( getattr ( wx , '__version__' , '0.0' ) [ 0 : 3 ] < '2.8' ) : if ( state and ( _wxagg is not None ) ) : _convert_agg_to_wx_image = _wxagg . convert_agg_to_wx_image _convert_agg_to_wx_bitmap = _wxagg . convert_agg_to_wx_bitmap else : _convert_agg_to_wx_image = _py_convert_agg_to_wx_image _convert_agg_to_wx_bitmap = _py_convert_agg_to_wx_bitmap else : _convert_agg_to_wx_image = _py_WX28_convert_agg_to_wx_image _convert_agg_to_wx_bitmap = _py_WX28_convert_agg_to_wx_bitmap
enable or disable the wxagg accelerator .