# def createmenu(tkinter, logic, window, matrix):
#     global tk
#     global win
#     global matr
#     tk = tkinter
#     win = window
#     matr = matrix

#     bar = tk.Menu(win)
#     file = tk.Menu(bar, tearoff=0)
#     file.add_command(label=new, command=new)
#     win.config(menu=bar)

# def new():
#     for btn in matr:
#         btn.config(bg='white')