eventdispatch 0.2.18__tar.gz → 0.2.19__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.
- {eventdispatch-0.2.18/eventdispatch.egg-info → eventdispatch-0.2.19}/PKG-INFO +1 -1
- {eventdispatch-0.2.18 → eventdispatch-0.2.19}/eventdispatch/example1.py +5 -4
- {eventdispatch-0.2.18 → eventdispatch-0.2.19}/eventdispatch/example2.py +5 -4
- {eventdispatch-0.2.18 → eventdispatch-0.2.19/eventdispatch.egg-info}/PKG-INFO +1 -1
- {eventdispatch-0.2.18 → eventdispatch-0.2.19}/pyproject.toml +1 -1
- {eventdispatch-0.2.18 → eventdispatch-0.2.19}/setup.py +1 -1
- {eventdispatch-0.2.18 → eventdispatch-0.2.19}/LICENSE +0 -0
- {eventdispatch-0.2.18 → eventdispatch-0.2.19}/NOTICE +0 -0
- {eventdispatch-0.2.18 → eventdispatch-0.2.19}/README.md +0 -0
- {eventdispatch-0.2.18 → eventdispatch-0.2.19}/eventdispatch/__init__.py +0 -0
- {eventdispatch-0.2.18 → eventdispatch-0.2.19}/eventdispatch/common1.py +0 -0
- {eventdispatch-0.2.18 → eventdispatch-0.2.19}/eventdispatch/composite_semaphore.py +0 -0
- {eventdispatch-0.2.18 → eventdispatch-0.2.19}/eventdispatch/core.py +0 -0
- {eventdispatch-0.2.18 → eventdispatch-0.2.19}/eventdispatch.egg-info/SOURCES.txt +0 -0
- {eventdispatch-0.2.18 → eventdispatch-0.2.19}/eventdispatch.egg-info/dependency_links.txt +0 -0
- {eventdispatch-0.2.18 → eventdispatch-0.2.19}/eventdispatch.egg-info/entry_points.txt +0 -0
- {eventdispatch-0.2.18 → eventdispatch-0.2.19}/eventdispatch.egg-info/top_level.txt +0 -0
- {eventdispatch-0.2.18 → eventdispatch-0.2.19}/setup.cfg +0 -0
|
@@ -240,15 +240,16 @@ class KeyboardThread(threading.Thread):
|
|
|
240
240
|
|
|
241
241
|
def main():
|
|
242
242
|
parser = argparse.ArgumentParser(description='eventdispatch example1')
|
|
243
|
-
parser.add_argument('--
|
|
244
|
-
help="
|
|
245
|
-
action='
|
|
243
|
+
parser.add_argument('--verbose',
|
|
244
|
+
help="verbose, default=True",
|
|
245
|
+
action='store_false')
|
|
246
246
|
args = parser.parse_args()
|
|
247
247
|
|
|
248
248
|
print("###################")
|
|
249
249
|
print("This program exercises some EventDispatch best practices and patterns")
|
|
250
250
|
print("Type a number to command the system")
|
|
251
251
|
print("Some commands will dispatch Events, which in turn dispatch other Events")
|
|
252
|
+
print("--verbose to print more")
|
|
252
253
|
print("###################")
|
|
253
254
|
|
|
254
255
|
# 0. Create `Blackboard` instance(s)
|
|
@@ -273,7 +274,7 @@ def main():
|
|
|
273
274
|
"ed1"
|
|
274
275
|
)
|
|
275
276
|
|
|
276
|
-
if args.
|
|
277
|
+
if not args.verbose:
|
|
277
278
|
wrap_instance_method(ed1,
|
|
278
279
|
"internal_log",
|
|
279
280
|
replace_with_func(noop))
|
|
@@ -198,9 +198,9 @@ class QuietCSRelease(CSRelease):
|
|
|
198
198
|
|
|
199
199
|
def main():
|
|
200
200
|
parser = argparse.ArgumentParser(description='eventdispatch example2')
|
|
201
|
-
parser.add_argument('--
|
|
202
|
-
help="
|
|
203
|
-
action='
|
|
201
|
+
parser.add_argument('--verbose',
|
|
202
|
+
help="verbose, default=True",
|
|
203
|
+
action='store_false')
|
|
204
204
|
args = parser.parse_args()
|
|
205
205
|
|
|
206
206
|
print("###################")
|
|
@@ -210,6 +210,7 @@ def main():
|
|
|
210
210
|
print("If a comes first, that command will match printing the letter(s) with producing those # signals")
|
|
211
211
|
print("")
|
|
212
212
|
print("In this way, you can create on-the-fly associations between printing some letters with printing others")
|
|
213
|
+
print("--verbose to print more")
|
|
213
214
|
print("###################")
|
|
214
215
|
|
|
215
216
|
# 0. Create `Blackboard` instance(s)
|
|
@@ -229,7 +230,7 @@ def main():
|
|
|
229
230
|
"ed1"
|
|
230
231
|
)
|
|
231
232
|
|
|
232
|
-
if args.
|
|
233
|
+
if not args.verbose:
|
|
233
234
|
blackboard["CSWait"] = QuietCSWait
|
|
234
235
|
blackboard["CSRelease"] = QuietCSRelease
|
|
235
236
|
wrap_instance_method(ed1,
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "eventdispatch"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.19"
|
|
8
8
|
authors = [{name = "Charlie Yan", email = "cyanatg@gmail.com"}]
|
|
9
9
|
dynamic = ["scripts", "dependencies"]
|
|
10
10
|
description = "Event Dispatch: discrete time synchronization"
|
|
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
|