Esempio n. 1
0
def PressKey(window, key):

    window.setFocus(QC.Qt.OtherFocusReason)

    uias = QP.UIActionSimulator()

    uias.Char(window, key)
def PressKeyOnFocusedWindow(key):

    window = QW.QApplication.focusWidget()

    uias = QP.UIActionSimulator()

    uias.Char(window, key)