Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
hschneider committed Nov 22, 2023
1 parent ce95e18 commit 8cf139f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,13 @@ Below this link, you see

## Python methods overview

| Method | Description |
|-----------------------------|---------------------------------------------------------------------------------------------------------------------------------|
| NeutralinoExtension(debug) | Extension class. debug: Print data flow to the terminal. |
| debugLog(msg, tag="info") | Write a message to the terminal. msg: Message, tag: The message type, "in" for incoming, "out" for outgoing, "info" for others. |
| parseFunctionCall(d) | Extracts function-name (f) and parameter-data (p) from a message data package. Returns (f, p). |
| async run(onReceiveMessage) | Starts the sockethandler main loop. onReceiveMessage: Callback function for incoming messages. |
| sendMessage(event, data) | Send a message to Neutralino. event: Event-name, data: Data package as string or JSON dict. |
| Method | Description |
|----------------------------------|---------------------------------------------------------------------------------------------------------------------------------|
| NeutralinoExtension(debug=false) | Extension class. debug: Print data flow to the terminal. |
| debugLog(msg, tag="info") | Write a message to the terminal. msg: Message, tag: The message type, "in" for incoming, "out" for outgoing, "info" for others. |
| parseFunctionCall(d) | Extracts function-name (f) and parameter-data (p) from a message data package. Returns (f, p). |
| async run(onReceiveMessage) | Starts the sockethandler main loop. onReceiveMessage: Callback function for incoming messages. |
| sendMessage(event, data=None) | Send a message to Neutralino. event: Event-name, data: Data package as string or JSON dict. |

## Neutralino methods overview

Expand Down
4 changes: 2 additions & 2 deletions extensions/python/NeutralinoExtension.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class NeutralinoExtension:

def __init__(self, debug=False):

self.version = "1.1.5"
self.version = "1.1.6"

parser = ArgumentParser()
parser.add_argument('--nl-port')
Expand All @@ -41,7 +41,7 @@ def __init__(self, debug=False):
self.termOnWindowClose = True # Terminate on windowCloseEvent message
self.debugLog(f"{self.idExtension} running on port {self.port}")

def sendMessage(self, event, data):
def sendMessage(self, event, data=None):
"""
Add a data package to the sending queue.
Triggers an event in the parent app.
Expand Down

0 comments on commit 8cf139f

Please sign in to comment.