pyloid 0.23.7__tar.gz → 0.23.9__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pyloid
3
- Version: 0.23.7
3
+ Version: 0.23.9
4
4
  Summary:
5
5
  Author: aesthetics-of-record
6
6
  Author-email: 111675679+aesthetics-of-record@users.noreply.github.com
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pyloid"
3
- version = "0.23.7"
3
+ version = "0.23.9"
4
4
  description = ""
5
5
  authors = ["aesthetics-of-record <111675679+aesthetics-of-record@users.noreply.github.com>"]
6
6
  readme = "README.md"
@@ -1211,7 +1211,9 @@ class _BrowserWindow:
1211
1211
 
1212
1212
  (JavaScript)
1213
1213
  ```javascript
1214
- document.addEventListener('customEvent', (data) => {
1214
+ import { event } from 'pyloid-js';
1215
+
1216
+ event.listen('customEvent', (data) => {
1215
1217
  console.log(data.message);
1216
1218
  });
1217
1219
  ```
@@ -2113,7 +2115,7 @@ class BrowserWindow(QObject):
2113
2115
  result = self._window.remove_shortcut(params["key_sequence"])
2114
2116
  elif command_type == "get_all_shortcuts":
2115
2117
  result = self._window.get_all_shortcuts()
2116
- elif command_type == "emit":
2118
+ elif command_type == "invoke":
2117
2119
  event_name = params["event_name"]
2118
2120
  data = params.get("data")
2119
2121
  result = self._window.invoke(event_name, data)
@@ -2668,9 +2670,13 @@ class BrowserWindow(QObject):
2668
2670
  >>> window.invoke("customEvent", {"message": "Hello, Pyloid!"})
2669
2671
 
2670
2672
  (JavaScript)
2671
- >>> document.addEventListener('customEvent', (data) => {
2672
- ... console.log(data.message);
2673
- ... });
2673
+ ```javascript
2674
+ import { event } from 'pyloid-js';
2675
+
2676
+ event.listen('customEvent', (data) => {
2677
+ console.log(data.message);
2678
+ });
2679
+ ```
2674
2680
  """
2675
2681
  return self.execute_command("invoke", {"event_name": event_name, "data": data})
2676
2682
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes