Melt butter in a large, heavy skillet over low heat; add onion, and saute until very tender, about 15 minutes. Stir in squash, and cover. Continue cooking, stirring occasionally, until squash is tender but still holds its shape, about 15 minutes. Season with salt and pepper.