Esempio n. 1
0
def test_close():

    app = QApplication(sys.argv)
    ex = Example()
    ale = Ale()
    # install globally
    app.installEventFilter(ale)

    sys.exit(app.exec_())
def test_drag():
    app = QApplication(sys.argv)
    # Turn off mouse click's and keylogging
    ale = Ale(shutoff=['mousemove', 'dragmove'], keylog=True)
    # install globally
    app.installEventFilter(ale)
    ex = ExampleWidget()
    ex.show()
    app.exec_()
Esempio n. 3
0
def test_app():
    app = QApplication(sys.argv)
    app.setObjectName("testApplication")
    ex = TestApplication()
    ale = Ale(output="mouse.log", user="******", version="0.0.1")
    # install globally
    app.installEventFilter(ale)

    sys.exit(app.exec_())
Esempio n. 4
0
def test_drag2():
    app = QApplication(sys.argv)
    ex = Example()
    ale = Ale(output="drag2.log",
              user="******",
              toolname="dragtest",
              toolversion="0.0.1")
    # install globally
    app.installEventFilter(ale)
    ex.show()
    app.exec_()
def test_controller():
    import sys

    app = QApplication(sys.argv)
    controller = ControllerWindow()

    # Initiate UserAle
    ale = Ale(output='window.log',
              user='******',
              toolname="Controller",
              toolversion="0.0.1",
              shutoff=["mousemove", "mouseleave", "mouseenter"])
    # install globally
    app.installEventFilter(ale)

    controller.show()
    sys.exit(app.exec_())