easycoder 250826.1__py2.py3-none-any.whl → 250915.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
@@ -12,4 +12,4 @@ from .ec_pyside import *
12
12
  from .ec_timestamp import *
13
13
  from .ec_value import *
14
14
 
15
- __version__ = "250826.1"
15
+ __version__ = "250915.1"
easycoder/ec_core.py CHANGED
@@ -1,5 +1,6 @@
1
1
  import json, math, hashlib, threading, os, subprocess, time
2
2
  import numbers, base64, binascii, random, requests, paramiko
3
+ from copy import deepcopy
3
4
  from psutil import Process
4
5
  from datetime import datetime
5
6
  from .ec_classes import FatalError, RuntimeWarning, RuntimeError, AssertionError, NoValueError, NoValueRuntimeError, Condition, Object
@@ -1076,7 +1077,7 @@ class Core(Handler):
1076
1077
  return False
1077
1078
 
1078
1079
  def r_push(self, command):
1079
- value = self.getRuntimeValue(command['value'])
1080
+ value = deepcopy(self.getRuntimeValue(command['value']))
1080
1081
  stackRecord = self.getVariable(command['to'])
1081
1082
  if stackRecord['keyword'] != 'stack':
1082
1083
  RuntimeError(self.program, f'{stackRecord["name"]} is not a stack')
@@ -2430,7 +2431,7 @@ class Core(Handler):
2430
2431
  def v_now(self, v):
2431
2432
  value = {}
2432
2433
  value['type'] = 'int'
2433
- value['content'] = getTimestamp(time.time())
2434
+ value['content'] = int(time.time())
2434
2435
  return value
2435
2436
 
2436
2437
  def v_position(self, v):
easycoder/ec_pyside.py CHANGED
@@ -81,6 +81,7 @@ class Graphics(Handler):
81
81
  def __init__(self):
82
82
  super().__init__()
83
83
  self.multiline = False
84
+ self.container = None
84
85
 
85
86
  def setContainer(self, container):
86
87
  self.container = container
@@ -96,6 +97,7 @@ class Graphics(Handler):
96
97
  def __init__(self):
97
98
  super().__init__()
98
99
  self.multiline = True
100
+ self.container = None
99
101
 
100
102
  def setContainer(self, container):
101
103
  self.container = container
@@ -733,7 +735,7 @@ class Graphics(Handler):
733
735
  return False
734
736
 
735
737
  def r_disable(self, command):
736
- self.getVariable(command['name'])['widget'].setEnabled(False)
738
+ self.getWidget(self.getVariable(command['name'])).setEnabled(False)
737
739
  return self.nextPC()
738
740
 
739
741
  # Enable a widget
@@ -745,7 +747,7 @@ class Graphics(Handler):
745
747
  return False
746
748
 
747
749
  def r_enable(self, command):
748
- self.getVariable(command['name'])['widget'].setEnabled(True)
750
+ self.getWidget(self.getVariable(command['name'])).setEnabled(True)
749
751
  return self.nextPC()
750
752
 
751
753
  # Create a group box
@@ -1130,7 +1132,7 @@ class Graphics(Handler):
1130
1132
  record = self.getVariable(command['name'])
1131
1133
  keyword = record['keyword']
1132
1134
  if keyword == 'window':
1133
- window = record['widget']
1135
+ window = record['window']
1134
1136
  container = QWidget()
1135
1137
  container.setLayout(content)
1136
1138
  window.setCentralWidget(container)
@@ -1141,7 +1143,8 @@ class Graphics(Handler):
1141
1143
  layout = self.getVariable(command['name'])['widget']
1142
1144
  layout.setSpacing(self.getRuntimeValue(command['value']))
1143
1145
  elif what == 'text':
1144
- widget = self.getVariable(command['name'])['widget']
1146
+ record = self.getVariable(command['name'])
1147
+ widget = self.getWidget(record)
1145
1148
  text = self.getRuntimeValue(command['value'])
1146
1149
  keyword = record['keyword']
1147
1150
  setText = getattr(widget, "setText", None)
@@ -1361,7 +1364,7 @@ class Graphics(Handler):
1361
1364
  symbolRecord = self.getVariable(symbolRecord['name'])
1362
1365
  keyword = symbolRecord['keyword']
1363
1366
  if keyword == 'pushbutton':
1364
- pushbutton = self.getSymbolContent() # symbolRecord['widget']
1367
+ pushbutton = self.getSymbolContent(symbolRecord) # symbolRecord['widget']
1365
1368
  v = {}
1366
1369
  v['type'] = 'text'
1367
1370
  v['content'] = pushbutton.accessibleName()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: easycoder
3
- Version: 250826.1
3
+ Version: 250915.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,19 +1,19 @@
1
- easycoder/__init__.py,sha256=_cfIh6Ck6_0pIwvg1NT2bpdJmGs9irBEUZ_ufwNg2cw,339
1
+ easycoder/__init__.py,sha256=7NHTZ5I7WslkzQzGX7LEpUibahBJDKSrzCv41TePpqs,339
2
2
  easycoder/close.png,sha256=3B9ueRNtEu9E4QNmZhdyC4VL6uqKvGmdfeFxIV9aO_Y,9847
3
3
  easycoder/ec_border.py,sha256=KpOy0Jq8jI_6DYGo4jaFvoBP_jTIoAYWrmuHhl-FXA4,2355
4
4
  easycoder/ec_classes.py,sha256=bejrby7mLHTeAQXhhz-1l8iv6LSbNSy30lW21KJKjXE,1832
5
5
  easycoder/ec_compiler.py,sha256=zImpvvSEfHRGe5MiIgmiu2i7rJxsB4pVLujqmHaOqTo,5392
6
6
  easycoder/ec_condition.py,sha256=YXvSBQKEzKGCcgUGo3Qp8iHolXmm2BpEm0NimSDszIM,785
7
- easycoder/ec_core.py,sha256=s7Ovz6iTjlMqVk-tmsnOH-EEECHxsudgUF1EAlIsOZ4,98044
7
+ easycoder/ec_core.py,sha256=dQrGEsErqyMDem_KMagSOoM7igOJUBax-6mA5bW3RMo,98071
8
8
  easycoder/ec_handler.py,sha256=ED08ULiOlZkcs4XHxAguvdPZw_dFXuwGDFLbFuo0kLs,2317
9
9
  easycoder/ec_keyboard.py,sha256=ru-HdWolBMZJPyck2s72In9tXFeLJQSPtR1TpjmIo90,18350
10
10
  easycoder/ec_program.py,sha256=3KM9n_SAChUgUnRxhPCnA75K2FP1fgxjW8z1YUA3cL4,10140
11
- easycoder/ec_pyside.py,sha256=6gT4s72x8wmEJ9_CVFleS1jCMLPHkmqlHmGO11Hmk0k,54022
11
+ easycoder/ec_pyside.py,sha256=bnGwnlYyN-4KI4ECpocrgVx2uGO_9aDrDZNjT4AK7ak,54148
12
12
  easycoder/ec_timestamp.py,sha256=myQnnF-mT31_1dpQKv2VEAu4BCcbypvMdzq7_DUi1xc,277
13
13
  easycoder/ec_value.py,sha256=zgDJTJhIg3yOvmnnKIfccIizmIhGbtvL_ghLTL1T5fg,2516
14
14
  easycoder/tick.png,sha256=OedASXJJTYvnza4J6Kv5m5lz6DrBfy667zX_WGgtbmM,9127
15
- easycoder-250826.1.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
16
- easycoder-250826.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
17
- easycoder-250826.1.dist-info/WHEEL,sha256=Dyt6SBfaasWElUrURkknVFAZDHSTwxg3PaTza7RSbkY,100
18
- easycoder-250826.1.dist-info/METADATA,sha256=1TGs8P_kbNuJVhELT1honrDIUt3RTOE6mw2arWQ5cVI,6897
19
- easycoder-250826.1.dist-info/RECORD,,
15
+ easycoder-250915.1.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
16
+ easycoder-250915.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
17
+ easycoder-250915.1.dist-info/WHEEL,sha256=Dyt6SBfaasWElUrURkknVFAZDHSTwxg3PaTza7RSbkY,100
18
+ easycoder-250915.1.dist-info/METADATA,sha256=YzBfnLU-bD4bsKv2_QvgouqMxVLV8l7BoO6Ydsa2zyU,6897
19
+ easycoder-250915.1.dist-info/RECORD,,