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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: eventdispatch
3
- Version: 0.2.18
3
+ Version: 0.2.19
4
4
  Summary: Event Dispatch: discrete time synchronization
5
5
  Home-page: http://github.com/cyan-at/python-eventdispatch
6
6
  Author: Charlie Yan
@@ -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('--quiet',
244
- help="quiet, default=False",
245
- action='store_true')
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.quiet:
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('--quiet',
202
- help="quiet, default=False",
203
- action='store_true')
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.quiet:
233
+ if not args.verbose:
233
234
  blackboard["CSWait"] = QuietCSWait
234
235
  blackboard["CSRelease"] = QuietCSRelease
235
236
  wrap_instance_method(ed1,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: eventdispatch
3
- Version: 0.2.18
3
+ Version: 0.2.19
4
4
  Summary: Event Dispatch: discrete time synchronization
5
5
  Home-page: http://github.com/cyan-at/python-eventdispatch
6
6
  Author: Charlie Yan
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "eventdispatch"
7
- version = "0.2.18"
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"
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='eventdispatch',
5
- version='0.2.18',
5
+ version='0.2.19',
6
6
  description='Event Dispatch, a discrete time synchronizer',
7
7
  url='http://github.com/cyan-at/python-eventdispatch',
8
8
  author='Charlie Yan',
File without changes
File without changes
File without changes
File without changes