Hi Helen,
Take a sharp craft knife and carefully score the paint line between frame and window (or, where it's been painted shut), then work the blade of a wide paint scraper (or, better still, a flexible filling knife) into the painted shut line and carefully try to work it free, taking care...