mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24:13 +08:00
card
This commit is contained in:
parent
d30e356c15
commit
7e5ee957d5
@ -191,7 +191,7 @@ class AnkiWindow(QWidget):
|
|||||||
fields = self.loadfileds()
|
fields = self.loadfileds()
|
||||||
fields.update(self.loadfakefields())
|
fields.update(self.loadfakefields())
|
||||||
html = self.parse_template(html, fields)
|
html = self.parse_template(html, fields)
|
||||||
html = "<style>" + model_css + "</style>" + html
|
html = f'<style>{model_css}</style><div class="card">{html}</div>'
|
||||||
self.htmlbrowser.set_html(html)
|
self.htmlbrowser.set_html(html)
|
||||||
|
|
||||||
def creattemplatetab(self):
|
def creattemplatetab(self):
|
||||||
@ -772,9 +772,10 @@ class searchwordW(closeashidewindow):
|
|||||||
|
|
||||||
self.ankiwindow.example.setPlainText(gobject.baseobject.currenttext)
|
self.ankiwindow.example.setPlainText(gobject.baseobject.currenttext)
|
||||||
self.search(sentence)
|
self.search(sentence)
|
||||||
if globalconfig['ankiconnect']['autoruntts']:
|
if globalconfig["ankiconnect"]["autoruntts"]:
|
||||||
self.ankiwindow.langdu()
|
self.ankiwindow.langdu()
|
||||||
self.ankiwindow.langdu2()
|
self.ankiwindow.langdu2()
|
||||||
|
|
||||||
def search(self, sentence):
|
def search(self, sentence):
|
||||||
if sentence == "":
|
if sentence == "":
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user