Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
hschneider committed Mar 2, 2024
1 parent dc2738d commit 31f3a4c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,9 @@ NeutralinoExtension Class:
| runThread(f, t, d): | Starts a background task. <br />f: Task-function<br />t: Task-name<br />d: Data-package |
| sendMessage(e, d=None) | Send a message to Neutralino. <br />e: Event-name,<br />d: Data-package as string or JSON dict. |

| Property | Description |
| ----------- | --------------------------------------------------------- |
| debug | If true, data flow is printed to the terminal |
| pollSigStop | If true, then polling for long running tasks is inactive. |
| Property | Description |
| -------- | ---------------------------------------------- |
| debug | If true, data flow is printed to the terminal |

### python-extension.js

Expand All @@ -200,7 +199,7 @@ PythonExtension Class:
| Method | Description |
| -------------------- | ------------------------------------------------------------ |
| async run(f, p=null) | Call a Python function. f: Function-name, p: Parameter data package as string or JSON. |
| async stop() | Stop and quit the Python extension and its parent app. Use this if Neutralino runs in Cloud-Mode. |
| async stop() | Stop and quit the Python extension and its parent app. Use this if Neutralino runs in Cloud-Mode. This is called automatically, when the browser tab is closed. |

| Property | Description |
| -------- | -------------------------------------------------- |
Expand Down
1 change: 1 addition & 0 deletions _VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.2.6
12 changes: 9 additions & 3 deletions resources/js/python-extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,17 @@

class PythonExtension {
constructor(debug=false) {
this.version = '1.1.3';
this.version = '1.1.4';
this.debug = debug;

this.pollSigStop = true;
this.pollID = 0;
if(NL_MODE !== 'window') {
window.addEventListener('beforeunload', function (e) {
e.preventDefault();
e.returnValue = '';
PYTHON.stop();
return '';
});
}
}
async run(f, p=null) {
//
Expand Down

0 comments on commit 31f3a4c

Please sign in to comment.