mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-27 15:44:12 +08:00
cancel select
This commit is contained in:
parent
faeaed134b
commit
a7648e3bbf
@ -223,7 +223,10 @@ class rangeselect(QMainWindow):
|
||||
self.rectlabel.setGeometry(QRect(_sp, _ep))
|
||||
|
||||
def mousePressEvent(self, event):
|
||||
if event.button() == Qt.MouseButton.LeftButton:
|
||||
if event.button() == Qt.MouseButton.RightButton:
|
||||
self.once = False
|
||||
self.close()
|
||||
elif event.button() == Qt.MouseButton.LeftButton:
|
||||
if self.startauto:
|
||||
self.callbackfunction(event)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user