|
9 mesiacov pred | |
---|---|---|
.. | ||
.gitignore | 9 mesiacov pred | |
README.md | 9 mesiacov pred | |
main.py | 9 mesiacov pred | |
package.json | 9 mesiacov pred | |
signature_pad.js | 9 mesiacov pred | |
signature_pad.py | 9 mesiacov pred |
This example demonstrates how to use third-party node modules as dependencies in a NiceGUI app. The app uses the signature_pad node module to create a signature pad. In package.json, the signature_pad module is listed as a dependency, while signature_pad.js and signature_pad.py define the new UI element which can be used in main.py.
First, install the third-party node modules (assuming you have NPM installed):
npm install
This will create a node_modules directory containing the signature_pad module.
Now you can run the app as usual:
python3 main.py