gui/dialog.py
def open_file(title="Open",  directory='', filename='', 
              wildcard='All Files (*.*)|*.*', multiple=False, parent=None):
    "Show a dialog to select files to open, return path(s) if accepted"
    style = wx.OPEN 
    if multiple:
        style |= wx.MULTIPLE
    result = dialogs.fileDialog(parent, title, directory, filename, wildcard, 
                                style)
    if result.paths and not multiple:
        return result.paths[0]
    else:
        return result.paths
def open_file(title="Open",  directory='', filename='', 
              wildcard='All Files (*.*)|*.*', multiple=False, parent=None):
    "Show a dialog to select files to open, return path(s) if accepted"
    style = wx.OPEN 
    if multiple:
        style |= wx.MULTIPLE
    result = dialogs.fileDialog(parent, title, directory, filename, wildcard, 
                                style)
    if result.paths and not multiple:
        return result.paths[0]
    else:
        return result.paths
Show a dialog to select files to open, return path(s) if accepted