Select and buy paint, but we should not forget that for painting frames is used paint for external work. From the window frame you need to remove the old paint using the spatula, then carefully, slowly, fill in the cracks and cracks. The junction of the glass with the frame must be treated with silicone sealant.