kindle manager
This commit is contained in:
14
kmanapp.py
14
kmanapp.py
@@ -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}★ ☆</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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user