Python版记事根源代码,程序运转截图:
完好程序代码:
importtkinterastkimporttkinter.scrolledtextastkstimportfileinputfromtkinterimport*importosfromtkinterimportmessagebox,simpledialog,colorchooser,fontimportwin32clipboardimporttkinter.fontimporttkinter.filedialogt1=[]root=Nonedefdie(event=None):root.destroy()defabout():messagebox.showinfo(title="今朝版本为1.0,接待哄骗",message="做家:\nPython代码大全")#defnewit(event):#editorit=editor()#editorit.neweditor()classeditor():def__init__(self,rt):ifrt==None:self.t=tk.Tk()else:self.t=tk.Toplevel(rt)self.t.title("文本编纂器%d"%(len(t1)+1))self.frm_file=tk.Frame(rt)self.frm_file.grid(row=0,column=0,padx=0,sticky=W)self.btn_open=Button(self.frm_file,text="翻开",relief=GROOVE,