mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
...
This commit is contained in:
parent
0c71262879
commit
ce45fdcabb
@ -266,7 +266,14 @@ class Textbrowser:
|
|||||||
self.movep(0, self.savey)
|
self.movep(0, self.savey)
|
||||||
|
|
||||||
if globalconfig["zitiyangshi"] == 3:
|
if globalconfig["zitiyangshi"] == 3:
|
||||||
|
self.textbrowser.show()
|
||||||
|
self.textbrowserback.show()
|
||||||
self.showyinyingtext(color, b1, b2)
|
self.showyinyingtext(color, b1, b2)
|
||||||
|
self.textbrowser.hide()
|
||||||
|
self.textbrowserback.hide()
|
||||||
|
else:
|
||||||
|
self.textbrowser.show()
|
||||||
|
self.textbrowserback.show()
|
||||||
|
|
||||||
def getcurrpointer(self):
|
def getcurrpointer(self):
|
||||||
return self.textcursor.position()
|
return self.textcursor.position()
|
||||||
|
@ -872,7 +872,14 @@ class QUnFrameWindow(resizableframeless):
|
|||||||
return
|
return
|
||||||
newHeight = self.document.size().height()
|
newHeight = self.document.size().height()
|
||||||
width = self.width()
|
width = self.width()
|
||||||
self.resize(width, int(5 + newHeight + globalconfig["buttonsize"] * 1.5))
|
self.resize(
|
||||||
|
width,
|
||||||
|
int(
|
||||||
|
max(0, -globalconfig["extra_space"])
|
||||||
|
+ newHeight
|
||||||
|
+ globalconfig["buttonsize"] * 1.5
|
||||||
|
),
|
||||||
|
)
|
||||||
|
|
||||||
def clickRange(self, auto):
|
def clickRange(self, auto):
|
||||||
if globalconfig["sourcestatus2"]["ocr"]["use"] == False:
|
if globalconfig["sourcestatus2"]["ocr"]["use"] == False:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user