mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
Update textbrowser.py
This commit is contained in:
parent
e23ba55dee
commit
2fef1511da
@ -286,11 +286,17 @@ class Textbrowser( ):
|
|||||||
_.setGraphicsEffect(self.geteffect(globalconfig['fontsize'],color,globalconfig['shadowforce']))
|
_.setGraphicsEffect(self.geteffect(globalconfig['fontsize'],color,globalconfig['shadowforce']))
|
||||||
_.show()
|
_.show()
|
||||||
if maxh:
|
if maxh:
|
||||||
|
if maxnewh==0:
|
||||||
|
maxnewh=maxh2
|
||||||
for label in self.yinyinglabels:
|
for label in self.yinyinglabels:
|
||||||
if label.isVisible()==False:continue
|
if label.isVisible()==False:continue
|
||||||
if label.pos().y()>maxh:
|
if label.pos().y()>maxh:
|
||||||
if maxnewh==0:
|
label.move(label.pos().x(),label.pos().y()+maxnewh-maxh)
|
||||||
maxnewh=maxh2
|
for klass in self.iteryinyinglabelsave:
|
||||||
|
if klass==iter_context_class:continue
|
||||||
|
for label in self.iteryinyinglabelsave[klass]:
|
||||||
|
if label.isVisible()==False:continue
|
||||||
|
if label.pos().y()>maxh:
|
||||||
label.move(label.pos().x(),label.pos().y()+maxnewh-maxh)
|
label.move(label.pos().x(),label.pos().y()+maxnewh-maxh)
|
||||||
def showyinyingtext(self,color ):
|
def showyinyingtext(self,color ):
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user