Get entries of the list

    title: Window name
    mag: Label of the check button

    return data dictionary like:
    {'y': '5.0', 'x': '100', 'z': 'save'}

def GetEntries(dataList, title="Select", msg=""):
    """
    Get entries of the list

    title: Window name
    mag: Label of the check button

    return data dictionary like:
    {'y': '5.0', 'x': '100', 'z': 'save'}
    """
    root = tkinter.Tk()
    root.title(title)

    label = tkinter.Label(root, text=msg)
    label.pack()

    entries = []
    for item in dataList:
        tkinter.Label(root, text=item).pack()
        entry = tkinter.Entry(root)
        entry.pack()
        entries.append(entry)

    # print entries
    tkinter.Button(root, text="OK", fg="black", command=root.quit).pack()
    root.mainloop()

    result = {}
    for (entry, data) in zip(entries, dataList):
        result[data] = entry.get()

    root.destroy()
    print(result)
    return result