easycoder 250508.1__py2.py3-none-any.whl → 250517.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__ = "250508.1"
12
+ __version__ = "250517.1"
easycoder/ec_core.py CHANGED
@@ -1,6 +1,6 @@
1
- import json, math, hashlib, threading, os, subprocess, sys, requests, time, numbers, base64, binascii, random
1
+ import json, math, hashlib, threading, os, subprocess, sys, time, numbers, base64, binascii, random, requests
2
2
  from psutil import Process
3
- from datetime import datetime, timezone
3
+ from datetime import datetime
4
4
  from random import randrange
5
5
  from .ec_classes import FatalError, RuntimeWarning, RuntimeError, AssertionError, NoValueError, NoValueRuntimeError, Condition, Object
6
6
  from .ec_handler import Handler
@@ -381,7 +381,7 @@ class Core(Handler):
381
381
 
382
382
  def r_exit(self, command):
383
383
  if self.program.graphics != None:
384
- self.program.graphics.force_exit()
384
+ self.program.graphics.force_exit(None)
385
385
  return -1
386
386
 
387
387
  # Declare a file variable
easycoder/ec_pyside.py CHANGED
@@ -386,9 +386,13 @@ class Graphics(Handler):
386
386
  if y == None: y = (self.screenHeight - h) / 2
387
387
  else: y = self.getRuntimeValue(x)
388
388
  window.setGeometry(x, y, w, h)
389
- container = QWidget()
390
- container.setLayout(self.getVariable(command['layout'])['widget'])
391
- window.setCentralWidget(container)
389
+ # content = self.getVariable(command['layout'])['widget']
390
+ # if isinstance(content, QWidget):
391
+ # container = content
392
+ # else:
393
+ # container = QWidget()
394
+ # container.setLayout(content)
395
+ # window.setCentralWidget(container)
392
396
  record['window'] = window
393
397
  return self.nextPC()
394
398
 
@@ -712,6 +716,7 @@ class Graphics(Handler):
712
716
  return self.nextPC()
713
717
 
714
718
  # set [the] width/height [of] {widget} [to] {value}
719
+ # set [the] layout of {window} to {layout}
715
720
  # set [the] text [of] {label}/{button}/{lineinput} [to] {text}
716
721
  # set [the] color [of] {label}/{button}/{lineinput} [to] {color}
717
722
  # set [the] state [of] {checkbox} [to] {color}
@@ -730,6 +735,18 @@ class Graphics(Handler):
730
735
  command['value'] = self.nextValue()
731
736
  self.add(command)
732
737
  return True
738
+ elif token == 'layout':
739
+ self.skip('of')
740
+ if self.nextIsSymbol():
741
+ record = self.getSymbolRecord()
742
+ if record['keyword'] == 'window':
743
+ command['name'] = record['name']
744
+ self.skip('to')
745
+ if self.nextIsSymbol():
746
+ record = self.getSymbolRecord()
747
+ command['layout'] = record['name']
748
+ self.add(command)
749
+ return True
733
750
  elif token == 'text':
734
751
  self.skip('of')
735
752
  if self.nextIsSymbol():
@@ -790,6 +807,13 @@ class Graphics(Handler):
790
807
  elif what == 'width':
791
808
  widget = self.getVariable(command['name'])['widget']
792
809
  widget.setFixedWidth(self.getRuntimeValue(command['value']))
810
+ elif what == 'layout':
811
+ window = self.getVariable(command['name'])['window']
812
+ layout = self.getVariable(command['layout'])
813
+ content = self.getVariable(command['layout'])['widget']
814
+ container = QWidget()
815
+ container.setLayout(content)
816
+ window.setCentralWidget(container)
793
817
  elif what == 'text':
794
818
  record = self.getVariable(command['name'])
795
819
  widget = self.getVariable(command['name'])['widget']
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: easycoder
3
- Version: 250508.1
3
+ Version: 250517.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>
@@ -8,6 +8,7 @@ Description-Content-Type: text/markdown
8
8
  Classifier: License :: OSI Approved :: MIT License
9
9
  License-File: LICENSE
10
10
  Requires-Dist: pytz
11
+ Requires-Dist: requests
11
12
  Requires-Dist: pyside6
12
13
  Project-URL: Home, https://github.com/easycoder/easycoder-py
13
14
 
@@ -1,18 +1,18 @@
1
1
  easycoder/README.md,sha256=BVXmYphcTJ6q6RN_9L6HtQukgCnOjSLVIsTM3lk-9aM,587
2
- easycoder/__init__.py,sha256=DAY4mbKzKqMgxczyawDk3ZIN6WF0a4zwdWfMUomK1pY,262
2
+ easycoder/__init__.py,sha256=tJvoCPTocwkmIxrMHQJ8tg8nxQ2RZgQbEqjOUBi0HHA,262
3
3
  easycoder/ec_classes.py,sha256=L6-6yWHDHw8yF9TGL4WWc4p1aUyXzYz6Gom7jJ43h8o,1823
4
4
  easycoder/ec_compiler.py,sha256=vNOAKIK2pX_cW4mcxwCe0OR16iqeZqvZQ6JCgQ5MqtU,5062
5
5
  easycoder/ec_condition.py,sha256=YXvSBQKEzKGCcgUGo3Qp8iHolXmm2BpEm0NimSDszIM,785
6
- easycoder/ec_core.py,sha256=SX2tXGgQ1aJr8cyb8NZ3ESgnr57G1e0wLDwkJbo3C5E,92003
6
+ easycoder/ec_core.py,sha256=OZRsF90uesePweZZQ64XEPlQ_se7xEMd3wUoNoSgOvg,91997
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
10
  easycoder/ec_program.py,sha256=d_CchiglkCdAgX2CSIQ_WTWcDEvFWCQmRKdoqLCaooU,10087
11
- easycoder/ec_pyside.py,sha256=N-sHBWIZ-rcFVcwMbqiRbU0IJO9Hpum4jZxeh8L_wvE,37023
11
+ easycoder/ec_pyside.py,sha256=NP-nXq-ois3wp4pDMaVSxB7FsxOe4ezZ7TqkKb0KxAM,38068
12
12
  easycoder/ec_timestamp.py,sha256=myQnnF-mT31_1dpQKv2VEAu4BCcbypvMdzq7_DUi1xc,277
13
13
  easycoder/ec_value.py,sha256=zgDJTJhIg3yOvmnnKIfccIizmIhGbtvL_ghLTL1T5fg,2516
14
- easycoder-250508.1.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
15
- easycoder-250508.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
16
- easycoder-250508.1.dist-info/WHEEL,sha256=Dyt6SBfaasWElUrURkknVFAZDHSTwxg3PaTza7RSbkY,100
17
- easycoder-250508.1.dist-info/METADATA,sha256=QxfJ4gkSpIFV70hfePs-xPq05t0Ztt1uCX2iAShrjDE,6827
18
- easycoder-250508.1.dist-info/RECORD,,
14
+ easycoder-250517.1.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
15
+ easycoder-250517.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
16
+ easycoder-250517.1.dist-info/WHEEL,sha256=Dyt6SBfaasWElUrURkknVFAZDHSTwxg3PaTza7RSbkY,100
17
+ easycoder-250517.1.dist-info/METADATA,sha256=sugEBalmSDH5JFyoRtXyUCV9bAnXxt-g1LPCPhbetEM,6851
18
+ easycoder-250517.1.dist-info/RECORD,,