smallneuron 2.2.2__tar.gz → 2.2.4__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.
- {smallneuron-2.2.2/src/smallneuron.egg-info → smallneuron-2.2.4}/PKG-INFO +1 -1
- {smallneuron-2.2.2 → smallneuron-2.2.4}/pyproject.toml +1 -1
- {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron/smallneuron.py +4 -3
- {smallneuron-2.2.2 → smallneuron-2.2.4/src/smallneuron.egg-info}/PKG-INFO +1 -1
- {smallneuron-2.2.2 → smallneuron-2.2.4}/.gitignore +0 -0
- {smallneuron-2.2.2 → smallneuron-2.2.4}/LICENSE +0 -0
- {smallneuron-2.2.2 → smallneuron-2.2.4}/README.md +0 -0
- {smallneuron-2.2.2 → smallneuron-2.2.4}/example.py +0 -0
- {smallneuron-2.2.2 → smallneuron-2.2.4}/setup.cfg +0 -0
- {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron/__init__.py +0 -0
- {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron/build +0 -0
- {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron/gpio_h3.c +0 -0
- {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron/gpio_h3.h +0 -0
- {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron/gpio_h3.so +0 -0
- {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron/logger.py +0 -0
- {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron/sndummy.py +0 -0
- {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron/sngpio.py +0 -0
- {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron/sninput.py +0 -0
- {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron/snmqtt.py +0 -0
- {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron/snserial.py +0 -0
- {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron/sntimer.py +0 -0
- {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron/snwatcher.py +0 -0
- {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron.egg-info/SOURCES.txt +0 -0
- {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron.egg-info/dependency_links.txt +0 -0
- {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron.egg-info/top_level.txt +0 -0
- {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron_pelainux.egg-info/PKG-INFO +0 -0
- {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron_pelainux.egg-info/SOURCES.txt +0 -0
- {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron_pelainux.egg-info/dependency_links.txt +0 -0
- {smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron_pelainux.egg-info/top_level.txt +0 -0
|
@@ -29,9 +29,9 @@ def ttfmt(txt):
|
|
|
29
29
|
class Node:
|
|
30
30
|
nodelist = {}
|
|
31
31
|
|
|
32
|
-
def __init__(self, state,
|
|
32
|
+
def __init__(self, state, desc="", style=""):
|
|
33
33
|
self.state = state
|
|
34
|
-
self.change_state=
|
|
34
|
+
self.change_state=False
|
|
35
35
|
self.event_manager = None # Este link es llenado durante addEdge del event manager
|
|
36
36
|
self.desc = desc
|
|
37
37
|
self.style = style
|
|
@@ -106,7 +106,7 @@ class EventManager:
|
|
|
106
106
|
nodeFrom.event_manager = self
|
|
107
107
|
nodeTo.event_manager = self
|
|
108
108
|
|
|
109
|
-
def linkCmd(self, event, nodeTo: Node, desc=""):
|
|
109
|
+
def linkCmd(self, event, nodeTo: Node, change_state=False, desc=""):
|
|
110
110
|
if event in self.cmds:
|
|
111
111
|
print("Error event already in cmds ", event)
|
|
112
112
|
raise "Error event already in cmds "
|
|
@@ -114,6 +114,7 @@ class EventManager:
|
|
|
114
114
|
print("Error event already in edges ", event)
|
|
115
115
|
raise "Error event already in edges "
|
|
116
116
|
else:
|
|
117
|
+
nodeTo.change_state=change_state
|
|
117
118
|
self.cmds[event] = (nodeTo, desc)
|
|
118
119
|
nodeTo.event_manager = self
|
|
119
120
|
nodeTo._cmd =True
|
|
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
|
|
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
|
{smallneuron-2.2.2 → smallneuron-2.2.4}/src/smallneuron_pelainux.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|