what is Window()?

maybe scnFilePath isn't the same lineedit that is on the gui.