parameters: ()
return_statement: return colordict
docstring: get the colors that already exist from the opened Document and return a dictionary
docstring_summary: get the colors that already exist from the opened Document and return a dictionary
docstring_tokens: get the colors that already exist from the opened Document and return a dictionary
function: def getColorDict():
      """get the colors that already exist from the opened Document and return a dictionary"""
      scribus.statusMessage("Reading existing colors...")
      colornames = scribus.getColorNames()
      scribus.progressTotal(len(colornames))
      i=0
      colordict={}
      for name in colornames:
          colordict[name]=None
          i=i+1
          scribus.progressSet(i)
      return colordict
function_tokens: def getColorDict ( ) : scribus . statusMessage ( "Reading existing colors..." ) colornames = scribus . getColorNames ( ) scribus . progressTotal ( len ( colornames ) ) i = 0 colordict = { } for name in colornames : colordict [ name ] = None i = i + 1 scribus . progressSet ( i ) return colordict