def open(self):
filename = self.dialogs.getOpenFileName(filter="<STR_LIT>" % self.FTYPE)<EOL>if filename:<EOL><INDENT>self.new(filename)<EOL><DEDENT>
open a session to define in a dialog in an extra window