Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- D_text=Text(self.c, height=20, width=105)
- D_text.tag_configure('bold_italics',
- font=('Verdana', 12, 'bold', 'italic'))
- D_text.tag_configure('big',
- font=('Verdana', 24, 'bold'))
- D_text.tag_configure('color',
- foreground='blue',
- font=('Tempus Sans ITC', 14))
- D_text.tag_configure('groove',
- relief=GROOVE,
- borderwidth=2)
- D_text.tag_bind('bite',
- '<1>',
- lambda e, t=D_text: t.insert(END, "Text"))
- D_text.pack(side=LEFT)
- D_text.place(x=370,y=250)
- D_text.insert(1.0,"hello")
- self.D_text_cont=D_text.get(1.0,END)
- connection=pymysql.connect
- (host='localhost',user="root",password="dcms5678",database="diaryon")
- cursor=connection.cursor()
- self.Saveit(self.D_text_cont,cursor)
- def Saveit(self,D_cont,c):
- print(D_cont)
- q2="insert into diary (content) VALUES ('%s') where diaryno=1888" %
- (D_cont)
- #q2="insert into diary (content) VALUES ('%s') where diaryno=('%s')" %
- (D_cont,D_user)
- c.execute(q2)
- c.commit()
Add Comment
Please, Sign In to add comment