def open(self):
        """open a session to define in a dialog in an extra window"""
        filename = self.dialogs.getOpenFileName(filter="*.%s" % self.FTYPE)
        if filename:
            self.new(filename)
def open ( self ) : filename = self . dialogs . getOpenFileName ( filter = "*.%s" % self . FTYPE ) if filename : self . new ( filename )
open a session to define in a dialog in an extra window