I have 3 entries on my window currently that contain a particular variable. And my goal is to be able to type something within thosse entries then press a button to update them all and run a command. However the command I set my button to run for some reason gets automatically ran as soon as you start the program and then becomes unusable. Here's the part of my code that presents an issue currently buttonA is the one with the command.
#Entries
entryA = Entry(Window,text="Angle",bg=bgB,fg=fgB,bd=0)
entryA.grid(row=1,column=2)
entryA.insert(0,info['a'])
entryB = Entry(Window,text="Velocity",bg=bgB,fg=fgB,bd=0)
entryB.grid(row=2,column=2)
entryB.insert(0,info['v'])
entryC = Entry(Window,text="Initial Height",bg=bgB,fg=fgB,bd=0)
entryC.grid(row=3,column=2)
entryC.insert(0,info['iH'])
entryD = Entry(Window,text="Rotate",bg=bgB,fg=fgB,bd=0)
entryD.grid(row=5,column=7)
entryE = Entry(Window,text="Amount",bg=bgB,fg=fgB,bd=0)
entryE.grid(row=6,column=7)
entryF = Entry(Window,text="Password",bg=bgB,fg=fgB,bd=0,show='*')
entryF.grid(row=13,column=6)
#CheckBoxes
var=None
checkA = Checkbutton(Window,bg=bgB,fg=fgB,bd=0,activebackground=ActiveC,activeforeground=fgB,variable=var).grid(row=1,column=7,sticky='w')
checkB = Checkbutton(Window,bg=bgB,fg=fgB,bd=0,activebackground=ActiveC,activeforeground=fgB,variable=var).grid(row=2,column=7,sticky='w')
checkC = Checkbutton(Window,bg=bgB,fg=fgB,bd=0,activebackground=ActiveC,activeforeground=fgB,variable=var).grid(row=3,column=7,sticky='w')
checkD = Checkbutton(Window, text="",bg=bgB,fg=fgB,bd=0,activebackground=ActiveC,activeforeground=fgB,Avariable=var).grid(row=4,column=7,sticky='w')
#Buttons
buttonA = Button(Window,text="Confirm",bg=bgB,fg=fgB,activebackground=ActiveC,activeforeground=fgB,bd=0,command=updateButton('A')).grid(row=1,column=4)
buttonB = Button(Window,text="Confirm",bg=bgB,fg=fgB,activebackground=ActiveC,activeforeground=fgB,bd=0).grid(row=2,column=4)
buttonC = Button(Window,text="Confirm",bg=bgB,fg=fgB,activebackground=ActiveC,activeforeground=fgB,bd=0).grid(row=3,column=4)
buttonD = Button(Window,text="ACTIVATE",bg=bgB,fg=fgB,activebackground=ActiveC,activeforeground=fgB,bd=0).grid(row=5,column=9)
buttonE = Button(Window,text="ACTIVATE",bg=bgB,fg=fgB,activebackground=ActiveC,activeforeground=fgB,bd=0).grid(row=6,column=9)
buttonFIRE = Button(Window,text="Fire",bg=bgB,fg=fgB,activebackground=ActiveC,activeforeground=fgB,bd=0).grid(row=14,column=6,sticky='w')