def store_overwrite_query_gui(path):
    """
    Ask if store path should be overwritten.

    Use this in a call to :func:`make_store` from a graphical user interface.
    """
    import wx
    msg = (path +
        " already exists. Press 'yes' to overwrite, or 'No' to abort and restart with newpath"
        )
    msg_dlg = wx.MessageDialog(None, msg, 'Overwrite Directory', wx.YES_NO |
        wx.ICON_QUESTION)
    retCode = msg_dlg.ShowModal()
    msg_dlg.Destroy()
    if retCode != wx.ID_YES:
        raise RuntimeError('Could not create path')
