window.geometry('1x1+200+200')
tkMessageBox.showerror(title='error', message='Error Message', parent=window)
window.geometry('1x1+' + str(window.winfo_screenwidth() / 2) + '+' + str(
    window.winfo_screenheight() / 2))
tkMessageBox.showinfo(title='Greetings', message='Hello World!')
How can I create a simple message box in Python?