In a skillet brown the butter or margarine. Remove from the heat and cool. In a medium bowl beat the eggs and add the pineapple, sugar and flour. Add to the margarine or butter mixture. Place half of the bread in the bottom of a 9-inch square pan. Cover with the pineapple mixture and top with the remaining bread. Bake in a 350F oven for 35 minutes.