This repository has been archived by the owner. It is now read-only.
Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Updated documentation. Included brief instrumentation guide.
- Loading branch information
Showing
14 changed files
with
191 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
language: python | ||
python: | ||
- "3.0" | ||
- "3.5" | ||
install: | ||
- "pip install -r requirements.txt" | ||
- "pip3 install -r requirements.txt" | ||
script: | ||
- python setup.py develop test | ||
- python3 setup.py develop test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
include MANIFEST.in | ||
include setup.py | ||
include README.txt | ||
include CHANGELOG.txt | ||
include LICENSE.txt | ||
include README | ||
include AUTHORS | ||
include CHANGELOG | ||
include LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
UserAle | ||
======= | ||
|
||
UserAle.pyqt5 is one of the Software As A Sensor™ products. The goal of Software As A Sensor™ is to develop understanding | ||
of your users through their interactions with your software product. You can then apply that understanding to improve your | ||
product's design and funtionality. UserAle.pyqt5 provides an easy way to generate highly detailed log streams from an PyQT5 application. | ||
|
||
UserAle.pyqt5 is developed at Draper and released free and open source through the Apache v2.0 license. Bug reports and contributions are welcome through Github. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Authors | ||
------- | ||
|
||
.. include:: ../../AUTHORS.txt | ||
.. include:: ../../AUTHORS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,5 @@ | ||
:orphan: | ||
|
||
Apache UserAle's documentation! | ||
=============================== | ||
.. include:: ../../README | ||
|
||
.. include:: contents.rst.inc | ||
|
||
Indices and tables | ||
================== | ||
|
||
* :ref:`genindex` | ||
* :ref:`modindex` | ||
* :ref:`search` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,58 @@ | ||
.. _quickstart: | ||
|
||
Quickstart Guide | ||
================ | ||
================ | ||
|
||
Instrumenting Your Application with UserAle | ||
------------------------------------------- | ||
|
||
It's very simple to instrument a PyQ5 application with UserAle. Simply import the UserAle library and register it with your application. | ||
|
||
Below is an example PyQt5 application taken from ZetCode PyQt5 tutorial instrumented with UserAle | ||
|
||
:: | ||
|
||
import sys | ||
from PyQt5.QtWidgets import QWidget, QLabel, QPushButton, QApplication, QMessageBox | ||
from PyQt5.QtCore import QCoreApplication, QObject, QEvent | ||
|
||
from userale.ale import Ale | ||
|
||
class TestApplication (QWidget): | ||
def __init__(self): | ||
super().__init__() | ||
self.initUI() | ||
def initUI(self): | ||
qbtn = QPushButton('Quit', self) | ||
qbtn.setObjectName ("testApplicationButton") | ||
qbtn.clicked.connect(QCoreApplication.instance().quit) | ||
qbtn.resize(qbtn.sizeHint()) | ||
qbtn.move(50, 50) | ||
self.setGeometry(300, 300, 250, 150) | ||
self.setWindowTitle('Quit button') | ||
self.show() | ||
if __name__ == '__main__': | ||
app = QApplication(sys.argv) | ||
ex = TestApplication() | ||
# Initiate UserAle | ||
ale = Ale () | ||
# install globally | ||
app.installEventFilter (ale) | ||
|
||
sys.exit (app.exec_()) | ||
|
||
|
||
|
||
Before we enter the mainloop of the application, UserAle needs to register the application to be instrumented. | ||
Simply instantiate UserAle and install it as an event filter in your application. | ||
|
||
:: | ||
|
||
# Initiate UserAle | ||
ale = Ale () | ||
# install globally | ||
app.installEventFilter (ale) |