提交 419b8014 编写于 作者: K Kentaro Wada

Support ESC in LabelQListWidget

上级 a79b0df3
......@@ -5,5 +5,6 @@ from qtpy import QtWidgets
class EscapableQListWidget(QtWidgets.QListWidget):
def keyPressEvent(self, event):
super(EscapableQListWidget, self).keyPressEvent(event)
if event.key() == Qt.Key_Escape:
self.clearSelection()
from qtpy import QtWidgets
from .escapable_qlist_widget import EscapableQListWidget
class LabelQListWidget(QtWidgets.QListWidget):
class LabelQListWidget(EscapableQListWidget):
def __init__(self, *args, **kwargs):
super(LabelQListWidget, self).__init__(*args, **kwargs)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册