easycoder 250301.3__py2.py3-none-any.whl → 250317.1__py2.py3-none-any.whl

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.

Potentially problematic release.


This version of easycoder might be problematic. Click here for more details.

easycoder/__init__.py CHANGED
@@ -9,4 +9,4 @@ from .ec_program import *
9
9
  from .ec_timestamp import *
10
10
  from .ec_value import *
11
11
 
12
- __version__ = "250301.3"
12
+ __version__ = "250317.1"
easycoder/ec_graphics.py CHANGED
@@ -151,9 +151,8 @@ class Graphics(Handler):
151
151
  window = psg.Window(title, layout, finalize=True)
152
152
  record['window'] = window
153
153
  record['eventHandlers'] = {}
154
- self.program.windowRecord = record
155
154
  self.program.run(self.nextPC())
156
- self.mainLoop()
155
+ self.mainLoop(record)
157
156
  return 0
158
157
 
159
158
  def k_frame(self, command):
@@ -266,7 +265,8 @@ class Graphics(Handler):
266
265
  def r_set(self, command):
267
266
  property = self.getRuntimeValue(command['property'])
268
267
  key = self.getRuntimeValue(command['key'])
269
- window = self.program.windowRecord['window']
268
+ windowRecord = self.getVariable(command['window'])
269
+ window = windowRecord['window']
270
270
  value = self.getRuntimeValue(command['value'])
271
271
  self.utils.updateProperty(window[key], property, value)
272
272
  return self.nextPC()
@@ -374,8 +374,7 @@ class Graphics(Handler):
374
374
 
375
375
  #############################################################################
376
376
  # The main loop
377
- def mainLoop(self):
378
- windowRecord = self.program.windowRecord
377
+ def mainLoop(self, windowRecord):
379
378
  window = windowRecord['window']
380
379
  eventHandlers = windowRecord['eventHandlers']
381
380
  while True:
easycoder/ec_handler.py CHANGED
@@ -3,6 +3,7 @@ import json
3
3
  class Handler:
4
4
 
5
5
  def __init__(self, compiler):
6
+ self.compiler = compiler
6
7
  self.program = compiler.program
7
8
  self.getToken = compiler.getToken
8
9
  self.nextToken = compiler.nextToken
easycoder/ec_program.py CHANGED
@@ -375,6 +375,9 @@ class Program:
375
375
  if type(v2) == int:
376
376
  if type(v1) != int:
377
377
  v2 = f'{v2}'
378
+ if type(v1) == dict and type(v2) == dict:
379
+ v1 = json.dumps(v1)
380
+ v2 = json.dumps(v2)
378
381
  if v1 > v2:
379
382
  return 1
380
383
  if v1 < v2:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: easycoder
3
- Version: 250301.3
3
+ Version: 250317.1
4
4
  Summary: Rapid scripting in English
5
5
  Keywords: compiler,scripting,prototyping,programming,coding,python,low code,hypertalk,computer language,learn to code
6
6
  Author-email: Graham Trott <gtanyware@gmail.com>
@@ -1,17 +1,17 @@
1
1
  easycoder/README.md,sha256=BVXmYphcTJ6q6RN_9L6HtQukgCnOjSLVIsTM3lk-9aM,587
2
- easycoder/__init__.py,sha256=X5CzPPW9v279AOqSadtoiU-YzpDe-LWqAY7QuU1rGDw,262
2
+ easycoder/__init__.py,sha256=i9vOIAO-m1MSvrt7lGPHDpUA4-z5gjSIOB-XDmhZzww,262
3
3
  easycoder/ec_classes.py,sha256=xnWBNak8oKydkFoxHLlq9wo3lIsB3aMnTDrqbtCfoWo,1512
4
4
  easycoder/ec_compiler.py,sha256=rtxFEWnhW0550MtWEDvYHOw9cYkeTcR0oG3t-kmgnBk,4795
5
5
  easycoder/ec_condition.py,sha256=YXvSBQKEzKGCcgUGo3Qp8iHolXmm2BpEm0NimSDszIM,785
6
6
  easycoder/ec_core.py,sha256=u4v023v26kjXU-_B46IpMeM8Lb2mUSLnpzmAs2Z83mI,88454
7
- easycoder/ec_graphics.py,sha256=N3Iy9IRLxgvgvwPrYZ_YYwrHzQOeloTuKB6md_U82XM,14407
7
+ easycoder/ec_graphics.py,sha256=sOQlSDpMMjwilLzGkC57-iHdaRqIUWl1SJxc0NbLs1M,14377
8
8
  easycoder/ec_gutils.py,sha256=yqu4RRQ6VdRkC5B2ADBYsXzgNu76dLnekd9aUjdEgPw,6399
9
- easycoder/ec_handler.py,sha256=IJvxcrJJSR53d6DS_8H5qPHKhp9y5-GV4WXAjhZxu_o,2250
10
- easycoder/ec_program.py,sha256=BDwU7aGHiaw6WdbQvVFDhGVaHsvwQ1CWa4wb5MPmOe8,10013
9
+ easycoder/ec_handler.py,sha256=K7nBuQTH8l0k8hX1o2b4KhTnhZHGdf2fkEuX4FJXJs8,2277
10
+ easycoder/ec_program.py,sha256=Ms-GOtd22TjqvxXkNtfNer725WgQmZiHXlNHLlwMGvs,10103
11
11
  easycoder/ec_timestamp.py,sha256=_3QFJPzIWZ9Rzk3SQOQJ-gwmvB07pg78k23SPntoZtY,288
12
12
  easycoder/ec_value.py,sha256=zgDJTJhIg3yOvmnnKIfccIizmIhGbtvL_ghLTL1T5fg,2516
13
- easycoder-250301.3.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
14
- easycoder-250301.3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
15
- easycoder-250301.3.dist-info/WHEEL,sha256=ssQ84EZ5gH1pCOujd3iW7HClo_O_aDaClUbX4B8bjKY,100
16
- easycoder-250301.3.dist-info/METADATA,sha256=2X-1Y-jLNyx-7-cpEMgt7v5_X-Ytl_6157zwHhavdU8,6155
17
- easycoder-250301.3.dist-info/RECORD,,
13
+ easycoder-250317.1.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
14
+ easycoder-250317.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
15
+ easycoder-250317.1.dist-info/WHEEL,sha256=ssQ84EZ5gH1pCOujd3iW7HClo_O_aDaClUbX4B8bjKY,100
16
+ easycoder-250317.1.dist-info/METADATA,sha256=zDaRKetMg3ZGC3NoKWh5k1GK0LWI2O1DgjbZ_JHiaKY,6155
17
+ easycoder-250317.1.dist-info/RECORD,,