本文整理汇总了Python中pyqode.qt.QtTest.QTest.keyRelease方法的典型用法代码示例。如果您正苦于以下问题:Python QTest.keyRelease方法的具体用法?Python QTest.keyRelease怎么用?Python QTest.keyRelease使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pyqode.qt.QtTest.QTest
的用法示例。
在下文中一共展示了QTest.keyRelease方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_calltips
# 需要导入模块: from pyqode.qt.QtTest import QTest [as 别名]
# 或者: from pyqode.qt.QtTest.QTest import keyRelease [as 别名]
def test_calltips(editor):
editor.clear()
mode = get_mode(editor)
assert editor.backend.connected
assert mode is not None
editor.setPlainText("open(__file_")
TextHelper(editor).goto_line(1, len('open(__file_'))
QTest.keyPress(editor, ',')
QTest.keyRelease(editor, ',')
QTest.qWait(1000)
示例2: test_calltips_with_closing_paren
# 需要导入模块: from pyqode.qt.QtTest import QTest [as 别名]
# 或者: from pyqode.qt.QtTest.QTest import keyRelease [as 别名]
def test_calltips_with_closing_paren(editor):
editor.clear()
mode = get_mode(editor)
assert editor.backend.connected
assert mode is not None
editor.setPlainText("open")
TextHelper(editor).goto_line(1, len('open'))
QTest.keyPress(editor, '(')
QTest.keyRelease(editor, '(')
QTest.qWait(1000)
mode._display_tooltip(None, 0)
示例3: test_key_released_event
# 需要导入模块: from pyqode.qt.QtTest import QTest [as 别名]
# 或者: from pyqode.qt.QtTest.QTest import keyRelease [as 别名]
def test_key_released_event(editor):
QTest.keyRelease(editor, QtCore.Qt.Key_Tab)