this is old code, look at the current version of `Window`. There is no setup_window() method in Enaml so i'm not sure how this worked for you.