'Select a filename using an open file dialog.'

def browse(self):

    if (self.filename is None):
        startdir = stdpaths.Documents
    else:
        startdir = os.path.dirname(self.filename)
    (filename, _) = QFileDialog.getOpenFileName(self, self.tr('Open'), directory=startdir, filter=self.FILTER)
    if filename:
        self.load(filename)
