easycoder 250805.2__py2.py3-none-any.whl → 250807.2__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 +1 -1
- easycoder/ec_core.py +32 -34
- easycoder/ec_pyside.py +3 -2
- {easycoder-250805.2.dist-info → easycoder-250807.2.dist-info}/METADATA +1 -1
- {easycoder-250805.2.dist-info → easycoder-250807.2.dist-info}/RECORD +8 -8
- {easycoder-250805.2.dist-info → easycoder-250807.2.dist-info}/LICENSE +0 -0
- {easycoder-250805.2.dist-info → easycoder-250807.2.dist-info}/WHEEL +0 -0
- {easycoder-250805.2.dist-info → easycoder-250807.2.dist-info}/entry_points.txt +0 -0
easycoder/__init__.py
CHANGED
easycoder/ec_core.py
CHANGED
|
@@ -593,39 +593,29 @@ class Core(Handler):
|
|
|
593
593
|
self.program.pc += 1
|
|
594
594
|
return self.program.pc
|
|
595
595
|
|
|
596
|
+
# Import one or more variables
|
|
596
597
|
def k_import(self, command):
|
|
597
|
-
|
|
598
|
-
|
|
598
|
+
imports = []
|
|
599
|
+
while True:
|
|
600
|
+
keyword = self.nextToken()
|
|
601
|
+
name = self.nextToken()
|
|
602
|
+
item = [keyword, name]
|
|
603
|
+
imports.append(item)
|
|
604
|
+
self.symbols[name] = self.getPC()
|
|
605
|
+
variable = {}
|
|
606
|
+
variable['domain'] = None
|
|
607
|
+
variable['name'] = name
|
|
608
|
+
variable['keyword'] = keyword
|
|
609
|
+
variable['import'] = None
|
|
610
|
+
variable['used'] = False
|
|
611
|
+
variable['hasValue'] = True if keyword == 'variable' else False
|
|
612
|
+
self.add(variable)
|
|
613
|
+
if self.peek() != 'and':
|
|
614
|
+
break
|
|
599
615
|
self.nextToken()
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
self.program.importPlugin(f'{source}:{clazz}')
|
|
604
|
-
return True
|
|
605
|
-
return False
|
|
606
|
-
else:
|
|
607
|
-
# Import one or more variables
|
|
608
|
-
imports = []
|
|
609
|
-
while True:
|
|
610
|
-
keyword = self.nextToken()
|
|
611
|
-
name = self.nextToken()
|
|
612
|
-
item = [keyword, name]
|
|
613
|
-
imports.append(item)
|
|
614
|
-
self.symbols[name] = self.getPC()
|
|
615
|
-
variable = {}
|
|
616
|
-
variable['domain'] = None
|
|
617
|
-
variable['name'] = name
|
|
618
|
-
variable['keyword'] = keyword
|
|
619
|
-
variable['import'] = None
|
|
620
|
-
variable['used'] = False
|
|
621
|
-
variable['hasValue'] = True if keyword == 'variable' else False
|
|
622
|
-
self.add(variable)
|
|
623
|
-
if self.peek() != 'and':
|
|
624
|
-
break
|
|
625
|
-
self.nextToken()
|
|
626
|
-
command['imports'] = json.dumps(imports)
|
|
627
|
-
self.add(command)
|
|
628
|
-
return True
|
|
616
|
+
command['imports'] = json.dumps(imports)
|
|
617
|
+
self.add(command)
|
|
618
|
+
return True
|
|
629
619
|
|
|
630
620
|
def r_import(self, command):
|
|
631
621
|
exports = self.program.exports
|
|
@@ -1763,8 +1753,16 @@ class Core(Handler):
|
|
|
1763
1753
|
|
|
1764
1754
|
# Use a plugin module
|
|
1765
1755
|
def k_use(self, command):
|
|
1766
|
-
self.
|
|
1767
|
-
|
|
1756
|
+
if self.peek() == 'plugin':
|
|
1757
|
+
# Import a plugin
|
|
1758
|
+
self.nextToken()
|
|
1759
|
+
clazz = self.nextToken()
|
|
1760
|
+
if self.nextIs('from'):
|
|
1761
|
+
source = self.nextToken()
|
|
1762
|
+
self.program.importPlugin(f'{source}:{clazz}')
|
|
1763
|
+
return True
|
|
1764
|
+
return False
|
|
1765
|
+
elif self.nextIs('graphics'):
|
|
1768
1766
|
print('Loading graphics module')
|
|
1769
1767
|
from .ec_pyside import Graphics
|
|
1770
1768
|
self.program.graphics = Graphics
|
|
@@ -2476,7 +2474,7 @@ class Core(Handler):
|
|
|
2476
2474
|
limit = self.getRuntimeValue(v['content'])
|
|
2477
2475
|
value = {}
|
|
2478
2476
|
value['type'] = 'int'
|
|
2479
|
-
value['content'] = randrange(0, limit)
|
|
2477
|
+
value['content'] = random.randrange(0, limit)
|
|
2480
2478
|
return value
|
|
2481
2479
|
|
|
2482
2480
|
def v_right(self, v):
|
easycoder/ec_pyside.py
CHANGED
|
@@ -967,9 +967,10 @@ class Graphics(Handler):
|
|
|
967
967
|
record = self.getVariable(command['name'])
|
|
968
968
|
widget = self.getVariable(command['name'])['widget']
|
|
969
969
|
text = self.getRuntimeValue(command['value'])
|
|
970
|
-
|
|
970
|
+
keyword = record['keyword']
|
|
971
|
+
if keyword in ['label', 'pushbutton', 'lineinput']:
|
|
971
972
|
widget.setText(text)
|
|
972
|
-
elif
|
|
973
|
+
elif keyword == 'multiline':
|
|
973
974
|
widget.setPlainText(text)
|
|
974
975
|
if record['keyword'] == 'pushbutton':
|
|
975
976
|
widget.setAccessibleName(text)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: easycoder
|
|
3
|
-
Version:
|
|
3
|
+
Version: 250807.2
|
|
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
|
-
easycoder/__init__.py,sha256=
|
|
1
|
+
easycoder/__init__.py,sha256=opggwOClYib2H_ErPp_TmmXLg38MI45-iZfwjJl0B7E,314
|
|
2
2
|
easycoder/close.png,sha256=3B9ueRNtEu9E4QNmZhdyC4VL6uqKvGmdfeFxIV9aO_Y,9847
|
|
3
3
|
easycoder/ec_classes.py,sha256=PWPaJuTfaWD4-tgT-2WWOgeFV_jXxlxyKCxvXyylCUU,1824
|
|
4
4
|
easycoder/ec_compiler.py,sha256=-uuXDbfgFBGXSrr7EneDnnneFOFsU-UuCIpNHsCqY0s,5289
|
|
5
5
|
easycoder/ec_condition.py,sha256=YXvSBQKEzKGCcgUGo3Qp8iHolXmm2BpEm0NimSDszIM,785
|
|
6
|
-
easycoder/ec_core.py,sha256=
|
|
6
|
+
easycoder/ec_core.py,sha256=r0bFQV3LXCCh4CP6289h6UvK6gpq4L0BQDrEWkeVo_0,98040
|
|
7
7
|
easycoder/ec_handler.py,sha256=ohf3xUuWw_Qb5SZnulGtDhvCb11kvWtYfgbQTiOXpIY,2261
|
|
8
8
|
easycoder/ec_keyboard.py,sha256=q_ALcZ7C5lgwGXQbKaXBsrzr7OyNHvWdv8ZoVKbpoEQ,19420
|
|
9
9
|
easycoder/ec_program.py,sha256=gt9qhz37kBVovh8LJbQEuwcbRvIi7_I9pyVvBGG-Hm4,9980
|
|
10
|
-
easycoder/ec_pyside.py,sha256=
|
|
10
|
+
easycoder/ec_pyside.py,sha256=s1KdvAEqDppLnUBs8J3u40PRa0KZGL7p6wpLVbYrLfk,45396
|
|
11
11
|
easycoder/ec_timestamp.py,sha256=myQnnF-mT31_1dpQKv2VEAu4BCcbypvMdzq7_DUi1xc,277
|
|
12
12
|
easycoder/ec_value.py,sha256=zgDJTJhIg3yOvmnnKIfccIizmIhGbtvL_ghLTL1T5fg,2516
|
|
13
|
-
easycoder-
|
|
14
|
-
easycoder-
|
|
15
|
-
easycoder-
|
|
16
|
-
easycoder-
|
|
17
|
-
easycoder-
|
|
13
|
+
easycoder-250807.2.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
|
|
14
|
+
easycoder-250807.2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
15
|
+
easycoder-250807.2.dist-info/WHEEL,sha256=ssQ84EZ5gH1pCOujd3iW7HClo_O_aDaClUbX4B8bjKY,100
|
|
16
|
+
easycoder-250807.2.dist-info/METADATA,sha256=76YHVlElsRKuBZQeEynkd6fYwfM-8LfIKWGG_qNW32M,6875
|
|
17
|
+
easycoder-250807.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|