提交 77925daf 编写于 作者: L LaraStuStu

Create escapable_qlist_widget.py

上级 35bffe07
from qtpy.QtCore import Qt
from qtpy import QtWidgets
class EscapableQListWidget(QtWidgets.QListWidget):
def keyPressEvent(self, event):
if event.key() == Qt.Key_Escape:
self.clearSelection()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册