This commit is contained in:
2023-07-07 01:41:19 +08:00
commit 95da43261e
83 changed files with 7529 additions and 0 deletions

View File

@ -0,0 +1,15 @@
from PySide6.QtWidgets import QLineEdit
class FocusSelectAllLineEdit(QLineEdit):
def mousePressEvent(self, event):
super().mousePressEvent(event)
self.selectAll()
def focusInEvent(self, event):
super().focusInEvent(event)
self.selectAll()
def focusOutEvent(self, event):
super().focusOutEvent(event)
self.deselect()