def windowsize(folder, size=None):
 fsr = Carbon.File.FSRef(folder)
 folder_alias = fsr.FSNewAliasMinimal()
 openwindow(fsr)
 if (not size):
  return _getwindowsize(folder_alias)
 return _setwindowsize(folder_alias, size)

def windowsize ( folder , size = None ) : fsr = Carbon . File . FSRef ( folder ) folder_alias = fsr . FSNewAliasMinimal ( ) openwindow ( fsr ) if ( not size ) : return _getwindowsize ( folder_alias ) return _setwindowsize ( folder_alias , size )
set the size of a finder window for folder to size= .