mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-28 08:04:13 +08:00
Update translatorUI.py
This commit is contained in:
parent
e8d8c6cd82
commit
dec300b940
@ -165,10 +165,11 @@ class QUnFrameWindow(resizableframeless):
|
||||
self.translate_text.append(' ',hira,origin)
|
||||
self.saveiterclasspointer[iter_context_class]={'curr':self.translate_text.getcurrpointer()+len(text),'start':self.translate_text.getcurrpointer()}
|
||||
else:
|
||||
self.document.blockSignals(True)
|
||||
self.translate_text.deletebetween(self.saveiterclasspointer[iter_context_class]['start'],self.saveiterclasspointer[iter_context_class]['curr'])
|
||||
self.translate_text.insertatpointer(self.saveiterclasspointer[iter_context_class]['start'],text)
|
||||
self.saveiterclasspointer[iter_context_class]['curr']=self.translate_text.getcurrpointer()
|
||||
|
||||
self.document.blockSignals(False)
|
||||
if globalconfig['zitiyangshi'] ==3:
|
||||
self.translate_text.showyinyingtext2(color,iter_context_class,self.saveiterclasspointer[iter_context_class]['start'],text)
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user