passing random int string in a label binding in tkinter code example Example: how to create tkinter window import tkinter master = tkinter.Tk() master.mainloop()