def SetGlobalStyle(style):
 global _style
 global _GLOBAL_STYLE_FACTORY
 factory = _GetStyleFactory(style)
 if factory:
  _GLOBAL_STYLE_FACTORY = factory
 _style = style

def SetGlobalStyle ( style ) : global _style global _GLOBAL_STYLE_FACTORY factory = _GetStyleFactory ( style ) if factory : _GLOBAL_STYLE_FACTORY = factory _style = style
set a style dict .