if you are referring to the
B = ttk.Button(root, text =value, command = helloCallBack)statement, you can destroy it before creating the next button,
if B: B.destroy()You do have to place a B=None statement at the top of your code to eliminate a "B doesn't exist" error on the first pass through the function. Also you can use one function for the value and key function. Something like this but you will have to test it yourself
def dropCall(*args): value = tkvar.get() ## using a dictionary instead of if statements ## to show how dictionaries are used baud_dict={9600:val1, 38400:val3, 119200:val2} if value in baud_dict: ard.baudrate = int(baud_dict[value])