def GetCheckButtonSelect(selectList, title="Select", msg=""):
    """
    Get selected check button options

    title: Window name
    mag: Label of the check button

    return selected dictionary
        {'sample b': False, 'sample c': False, 'sample a': False}
    """
    root = tkinter.Tk()
    root.title(title)

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

    optList = []
    for item in selectList:
        opt = tkinter.BooleanVar()
        opt.set(False)
        tkinter.Checkbutton(root, text=item, variable=opt).pack()
        optList.append(opt)

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

    result = {}
    for (opt, select) in zip(optList, selectList):
        result[select] = opt.get()

    print(result)
    return result