kindle manager

This commit is contained in:
gavin
2020-06-16 09:50:09 +08:00
parent 956e68f551
commit 2171955111
15 changed files with 19 additions and 3 deletions

View File

@@ -36,6 +36,13 @@ notes_temp = """<br><span style='font-size:18pt;color:maroon'>《{bookname}》</
<span style='font-size:18pt;color:#31849B'>{content}</span>
<span style='font-size:11pt;color:maroon'>【P{position}】</span><br>"""
infos_temp = """<br><span style='font-size:18pt;color:maroon'>
<a href="3school.com.cn/" target="_blank">《{bookname}》</a></span>
<span style='font-size:18pt;color:maroon'> {author} </span>
<span style='font-size:18pt;color:maroon'> ({time}) </span>
<span style='font-size:18pt;color:#31849B'>{rate}&#9733 &#9734</span>
<span style='font-size:11pt;color:maroon'>{img}</span><br>"""
words_temp = """<br><span style='font-size:18pt;color:#31849B'>{usage}</span><br><br>
<span style='font-size:14pt;color:#2F4F4F'> {bookname} </span>
<span style='font-size:14pt;color:maroon'> {author} </span>
@@ -200,9 +207,10 @@ class kmanWindow(QMainWindow):
if comp in [1,2]:
if len(self.filter_list)>0:
[stype,sbookname,sauthor,sposition,stime,scontent] = self.filter_list[0]
self.ui.textEdit.setHtml(notes_temp.format(
bookname=sbookname, author=sauthor, time=stime,
note=stype, content=scontent, position=sposition))
tt = notes_temp.format( bookname=sbookname, author=sauthor, time=stime,
note=stype, content=scontent, position=sposition)
print(re.split(r'[\(\-\:_\s]',sbookname.strip())[0])
self.ui.textEdit.setHtml(tt)
elif comp in [3,4]:
self.render_textedit_words(self.words_data)