/hidpytoy

A GUI app for playing with HID devices, written in Python

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

HIDPyToy - A simple tool to play with USB HID devices

Written in Python3 with PyQt5 and built with fbs.

Download

Pre-build executables are available on the hidpytoy releases page for:

Requirements

To install for development (until I get setup.py up):

git clone https://github.com/todbot/hidpytoy
cd hidpytoy

Windows

py -3.6 -m venv venv
.\venv\scripts\activate.ps1
pip install -r requirements.txt

Linux

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Running

Linux

fbs run

Hint: If you are running this from a non root user, run instead this command

fbspath=$(whereis fbs | cut -d ":" -f2)
sudo $fbspath run

Building

fbs freeze

UI Customisation

Requirements

  1. Install Qt Designer from https://build-system.fman.io/qt-designer-download
  2. Save .UI file and run
pyuic5 HIDToyWindow.ui -o HIDToyWindow.py

If you are working from another location

cp ~/Desktop/HIDToyWindow.ui src/main/python/ && pyuic5 src/main/python/HIDToyWindow.ui -o src/main/python/HIDToyWindow.py

Be sure to check fbs troubleshooting page