Dialog for querying user input
Project description
Robocorp Dialog
A separate executable which opens a dialog window for querying user input. Content created dynamically based on JSON spec.
Used in Dialogs library.
How to build
The Python project uses pywebview to render the files in the static/
folder.
In order to install the Python and JS dependencies you can use:
poetry run inv install
and then to build the static files once use:
poetry run inv build-js
It is recommended that for development you use the watch command so that the front-end is continously built after each change:
poetry run inv watch-js
How to test
Use: poetry run inv test
How to run
You will also need a JSON formatted input that will contain the elements to be rendered in the dialog. An example of such a JSON would be: form_with_steps.json
Then the command you use to call the main.py
file will have to contain this JSON alongside the window title and sizes.
A basic example to start a dialog with a heading would be:
python robocorp_dialog/main.py --title Dialog --width 480 --height 100 --auto_height '[{"type":"heading","value":"Send feedback","size":"medium"}]'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file robocorp-dialog-0.5.1.tar.gz
.
File metadata
- Download URL: robocorp-dialog-0.5.1.tar.gz
- Upload date:
- Size: 21.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.12 Darwin/21.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 276bca37a9e2cb2594c497dd0b5742512d9156a4a106f45bd69dacdab240aa8b |
|
MD5 | c0955a7015bad5e05063e92afed17bcd |
|
BLAKE2b-256 | f8676452518e8a263dc994124afe22f6f2e3881decda4eee4413cab4ccbe8868 |
Provenance
File details
Details for the file robocorp_dialog-0.5.1-py3-none-any.whl
.
File metadata
- Download URL: robocorp_dialog-0.5.1-py3-none-any.whl
- Upload date:
- Size: 22.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.12 Darwin/21.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0692327b80dca136dff6621a2de08dab4a0f9da6424c1f8cb9c61949a6c26b7 |
|
MD5 | e76efa77712dec217fff472c25dcef1b |
|
BLAKE2b-256 | 07bdf3d6d0cde117fa8a45039802c906a9fe15257e61695fb72485105e93d609 |