parameters: (folder, pos=None)
return_statement: return _setwindowposition(folder_alias, pos)
docstring: Set the position of a Finder window for folder to pos=(w, h).
docstring_summary: Set the position of a Finder window for folder to pos=(w, h).
docstring_tokens: Set the position of a Finder window for folder to pos = ( w h ) .
function: def windowposition(folder, pos=None):
      """Set the position of a Finder window for folder to pos=(w, h)."""
      fsr = Carbon.File.FSRef(folder)
      folder_alias = fsr.FSNewAliasMinimal()
      openwindow(fsr)
      if not pos:
          return _getwindowposition(folder_alias)
      if type(pos) == InstanceType:
          # pos might be a QDPoint object as returned by _getwindowposition
          pos = (pos.h, pos.v)
      return _setwindowposition(folder_alias, pos)
function_tokens: def windowposition ( folder , pos = None ) : fsr = Carbon . File . FSRef ( folder ) folder_alias = fsr . FSNewAliasMinimal ( ) openwindow ( fsr ) if not pos : return _getwindowposition ( folder_alias ) if type ( pos ) == InstanceType : # pos might be a QDPoint object as returned by _getwindowposition pos = ( pos . h , pos . v ) return _setwindowposition ( folder_alias , pos )