import smtplib
import tkinter
class Window:
def __init__(selfroot):
label1 = tkinter.Label(roottext=‘SMTP‘)
label2 = tkinter.Label(roottext=‘Port‘)
label3 = tkinter.Label(roottext=‘用户名‘)
label4 = tkinter.Label(roottext=‘密码‘)
label5 = tkinter.Label(roottext=‘收件人‘)
label6 = tkinter.Label(roottext=‘主题‘)
label7 = tkinter.Label(roottext=‘发件人‘)
label1.place(x=5y=5)
label2.place(x=5y=30)
label3.place(x=5y=55)
label4.place(x=5y=80)
label5.place(x=5y=105)
label6.place(x=5y=130)
label7.place(x=5y=155)
self.entryPop = tkinter.Entry(root)
self.entryPort = tkinter.Entry(root)
self.entryUser = tkinter.Entry(root)
self.entryPass = tkinter.Entry(rootshow = ‘*‘)
self.entryTo = tkinter.Entry(root)
self.entrySub = tkinter.Entry(root)
self.entryFrom = tkinter.Entry(root)
self.entryPort.insert(tkinter.END‘25‘)
self.entryPop.place(x=50y=5)
self.entryPort.place(x=50y
评论
共有 条评论