easycoder 250520.1__py2.py3-none-any.whl → 250527.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__ = "250520.1"
12
+ __version__ = "250527.1"
easycoder/ec_core.py CHANGED
@@ -1995,6 +1995,9 @@ class Core(Handler):
1995
1995
  value['command'] = self.nextValue()
1996
1996
  return value
1997
1997
 
1998
+ if token == 'ticker':
1999
+ return value
2000
+
1998
2001
  return None
1999
2002
 
2000
2003
  #############################################################################
@@ -2387,6 +2390,12 @@ class Core(Handler):
2387
2390
  value['content'] = round(math.tan(angle * 0.01745329) * radius)
2388
2391
  return value
2389
2392
 
2393
+ def v_ticker(self, v):
2394
+ value = {}
2395
+ value['type'] = 'int'
2396
+ value['content'] = self.program.ticker
2397
+ return value
2398
+
2390
2399
  def v_timestamp(self, v):
2391
2400
  value = {}
2392
2401
  value['type'] = 'int'
easycoder/ec_program.py CHANGED
@@ -49,6 +49,7 @@ class Program:
49
49
  self.graphics = None
50
50
  self.processClasses()
51
51
  self.externalControl = False
52
+ self.ticker = 0
52
53
  self.running = True
53
54
 
54
55
  def start(self, parent=None, module = None, exports=[]):
@@ -288,7 +289,9 @@ class Program:
288
289
  self.parent.waiting = False
289
290
  self.parent.program.run(self.parent.pc)
290
291
 
292
+ # This is called at 10msec intervals by the GUI code
291
293
  def flushCB(self):
294
+ self.ticker += 1
292
295
  flush()
293
296
 
294
297
  # Flush the queue
easycoder/ec_pyside.py CHANGED
@@ -93,7 +93,9 @@ class Graphics(Handler):
93
93
  return addToLayout()
94
94
  else: return False
95
95
  # (1)
96
- command['value'] = self.getValue()
96
+ value = self.getValue()
97
+ if value == None: return False
98
+ command['value'] = value
97
99
  self.skip('to')
98
100
  if self.nextIsSymbol():
99
101
  record = self.getSymbolRecord()
@@ -1047,16 +1049,3 @@ class Graphics(Handler):
1047
1049
  def force_exit(self):
1048
1050
  QApplication.quit() # Gracefully close the application
1049
1051
  sys.exit(0) # Force a complete system exit
1050
-
1051
-
1052
- def addIconToLayout(layout, icon_path):
1053
- """
1054
- Adds an icon to the specified layout.
1055
-
1056
- :param layout: The layout to which the icon will be added.
1057
- :param icon_path: The file path of the icon image.
1058
- """
1059
- icon_label = QLabel()
1060
- pixmap = QPixmap(icon_path)
1061
- icon_label.setPixmap(pixmap)
1062
- layout.addWidget(icon_label)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: easycoder
3
- Version: 250520.1
3
+ Version: 250527.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,18 +1,18 @@
1
1
  easycoder/README.md,sha256=BVXmYphcTJ6q6RN_9L6HtQukgCnOjSLVIsTM3lk-9aM,587
2
- easycoder/__init__.py,sha256=gCsKYJQmDaGZBEmVNE1uPPEjT_PDYfKVn93NYe62x_Q,262
2
+ easycoder/__init__.py,sha256=n1oZv4H492PIeQY3wvjgafh-O6BJs1gYTv4AGgSsTU8,262
3
3
  easycoder/ec_classes.py,sha256=L6-6yWHDHw8yF9TGL4WWc4p1aUyXzYz6Gom7jJ43h8o,1823
4
4
  easycoder/ec_compiler.py,sha256=zKZXXUrQyHbwZ1gJARnwfdAPHWTARa5SN9Y31iuty8o,5086
5
5
  easycoder/ec_condition.py,sha256=YXvSBQKEzKGCcgUGo3Qp8iHolXmm2BpEm0NimSDszIM,785
6
- easycoder/ec_core.py,sha256=ATuBnJP4RZZCzB7How8XUouF7PoFM7JwuVrjh4oQGH4,92242
6
+ easycoder/ec_core.py,sha256=IH7lvxr1ZSFcZvd00RV8wzG_fvWX8bSW4YHKLOL3m04,92443
7
7
  easycoder/ec_graphics.py,sha256=WXxKMB4GJSmxvk-FVbOTyufiUx4TYIzyDoB1PCAO3JY,16067
8
8
  easycoder/ec_gutils.py,sha256=yqu4RRQ6VdRkC5B2ADBYsXzgNu76dLnekd9aUjdEgPw,6399
9
9
  easycoder/ec_handler.py,sha256=zPDZ_hqdgNnkCd8B5HmSLkqsGgf4aDmqcUBOPHgo47U,2305
10
- easycoder/ec_program.py,sha256=d_CchiglkCdAgX2CSIQ_WTWcDEvFWCQmRKdoqLCaooU,10087
11
- easycoder/ec_pyside.py,sha256=68VdAbE_mSq_RJY26u5CC_nGnkg9rxIjQ2VnB7mBIK0,38670
10
+ easycoder/ec_program.py,sha256=ww1SbzWVoQrImt4S648vSPjsWHgjBNAzxIvAIXJ5074,10178
11
+ easycoder/ec_pyside.py,sha256=7mqpZrZIyTL5l3CcY0rqcKcTaEW98ttVyBKaVkwXA40,38389
12
12
  easycoder/ec_timestamp.py,sha256=myQnnF-mT31_1dpQKv2VEAu4BCcbypvMdzq7_DUi1xc,277
13
13
  easycoder/ec_value.py,sha256=zgDJTJhIg3yOvmnnKIfccIizmIhGbtvL_ghLTL1T5fg,2516
14
- easycoder-250520.1.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
15
- easycoder-250520.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
16
- easycoder-250520.1.dist-info/WHEEL,sha256=ssQ84EZ5gH1pCOujd3iW7HClo_O_aDaClUbX4B8bjKY,100
17
- easycoder-250520.1.dist-info/METADATA,sha256=E_tnIlndfBiBc3pPnGMtbtwBbtbaP4BN-UqBrIX8Hbo,6829
18
- easycoder-250520.1.dist-info/RECORD,,
14
+ easycoder-250527.1.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
15
+ easycoder-250527.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
16
+ easycoder-250527.1.dist-info/WHEEL,sha256=ssQ84EZ5gH1pCOujd3iW7HClo_O_aDaClUbX4B8bjKY,100
17
+ easycoder-250527.1.dist-info/METADATA,sha256=699sqDp-Z8RoULy6ObRZIUHHEBT5gYt2plP-g5fiILc,6829
18
+ easycoder-250527.1.dist-info/RECORD,,