I want to play a sound and display some information on the screen in my program.
I'm currently using the following:
winsound.PlaySound('chaching.wav', winsound.SND_FILENAME)
 messagebox.showinfo(
     "Info", "Assigned {} to {}, the password is {}".format(
     id, acc_name, acc_pass))
However that makes the stupid error noise when the message box is triggered.
I'm pretty sure there's no way to do this; calling bell() whenever a Message is displayed is part of Tcl/Tk, not something Python/Tkinter adds on top of it.1
But you can always use SimpleDialog to build a modal dialog that looks just like MessageBox but isn't one, and doesn't sound like one.2.

1. Well, if you really wanted to reach down into the Tcl code… but you don't.
2. IIRC, SimpleDialog does call bell() if you do things like press Esc or hit the close box on a dialog with no cancel button set. But I'm pretty sure that is done by Python/Tkinter, not Tcl/Tk, so you can just override the wm_delete_window or whichever method is responsible. Or just not create a window without a cancel button.
How do I change or disable the default sound for tkinter message boxes in python 3