hello, i just wanna complete my program. But i don't know where the problem is...
i am using python 3.4.4
can u help me, please...
below is the code :
thank you
i am using python 3.4.4
can u help me, please...
below is the code :
#try entry #maked by MRX #making frame from tkinter import * import messagebox #message in messagebox def hi(): messagebox.showinfo('login', 'you have succes to login!') a = Tk() a.title("Login") #making the contents b = Frame(a) Label(b, text='LOGIN').pack() Label(b, text='name').pack(side=LEFT) Entry(b, width=50).pack(side=LEFT) Label(b, text='password').pack(side=LEFT) Entry(b, width=50).pack(side=LEFT) Button(b, text='login', command=hi).pack(side=RIGHT) b.pack(fill=BOTH, expand=YES) mainloop()and when i run the code, it will display this:
Error:Traceback (most recent call last):
File "C:\Users\User\Desktop\tester\gamelogin+messagebox.py", line 6, in <module>
import messagebox
ImportError: No module named 'messagebox'
but, i have module named messagebox in my computerthank you