easycoder 250714.1__py2.py3-none-any.whl → 250718.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__ = "250714.1"
12
+ __version__ = "250718.1"
easycoder/ec_core.py CHANGED
@@ -2635,7 +2635,7 @@ class Core(Handler):
2635
2635
  v = self.getRuntimeValue(v['content'])
2636
2636
  value = {}
2637
2637
  value['type'] = 'int'
2638
- value['content'] = int(v)
2638
+ value['content'] = int(v) if v != '' else 0
2639
2639
  return value
2640
2640
 
2641
2641
  def v_weekday(self, v):
easycoder/ec_program.py CHANGED
@@ -149,14 +149,14 @@ class Program:
149
149
  elif valType == 'symbol':
150
150
  name = value['name']
151
151
  symbolRecord = self.getSymbolRecord(name)
152
- if symbolRecord['hasValue']:
153
- handler = self.domainIndex[symbolRecord['domain']].valueHandler('symbol')
154
- result = handler(symbolRecord)
155
- else:
156
- # Call the given domain to handle a value
157
- domain = self.domainIndex[value['domain']]
158
- handler = domain.valueHandler(value['type'])
159
- if handler: result = handler(value)
152
+ # if symbolRecord['hasValue']:
153
+ handler = self.domainIndex[symbolRecord['domain']].valueHandler('symbol')
154
+ result = handler(symbolRecord)
155
+ # else:
156
+ # # Call the given domain to handle a value
157
+ # # domain = self.domainIndex[value['domain']]
158
+ # handler = domain.valueHandler(value['type'])
159
+ # if handler: result = handler(value)
160
160
  else:
161
161
  # Call the given domain to handle a value
162
162
  domain = self.domainIndex[value['domain']]
easycoder/ec_pyside.py CHANGED
@@ -467,12 +467,12 @@ class Graphics(Handler):
467
467
  dialogType = command['type']
468
468
  if dialogType in ['lineinput']:
469
469
  if dialogType == 'lineinput':
470
- input = QLineEdit()
471
- mainLayout.addWidget(input)
472
- dialog.buttonBox = QDialogButtonBox((QDialogButtonBox.Ok | QDialogButtonBox.Cancel))
473
- dialog.buttonBox.accepted.connect(dialog.accept)
474
- dialog.buttonBox.rejected.connect(dialog.reject)
475
- mainLayout.addWidget(dialog.buttonBox, alignment=Qt.AlignHCenter)
470
+ dialog.lineEdit = QLineEdit(dialog)
471
+ mainLayout.addWidget(dialog.lineEdit)
472
+ buttonBox = QDialogButtonBox(QDialogButtonBox.Ok | QDialogButtonBox.Cancel, dialog)
473
+ buttonBox.accepted.connect(dialog.accept)
474
+ buttonBox.rejected.connect(dialog.reject)
475
+ mainLayout.addWidget(buttonBox, alignment=Qt.AlignHCenter)
476
476
  record['dialog'] = dialog
477
477
  return self.nextPC()
478
478
 
@@ -504,7 +504,7 @@ class Graphics(Handler):
504
504
 
505
505
  # Declare a dialog variable
506
506
  def k_dialog(self, command):
507
- return self.compileVariable(command)
507
+ return self.compileVariable(command, 'gui')
508
508
 
509
509
  def r_dialog(self, command):
510
510
  return self.nextPC()
@@ -950,9 +950,9 @@ class Graphics(Handler):
950
950
  window = self.getVariable(command['window'])['window']
951
951
  window.show()
952
952
  elif 'dialog' in command:
953
- dialog = self.getVariable(command['dialog'])['dialog']
954
- result = dialog.exec()
955
- # TODO: Finish the dialog box for getting the request relay name
953
+ record = self.getVariable(command['dialog'])
954
+ dialog = record['dialog']
955
+ record['result'] = dialog.exec()
956
956
  return self.nextPC()
957
957
 
958
958
  # Start the graphics
@@ -1071,6 +1071,13 @@ class Graphics(Handler):
1071
1071
  v['type'] = 'boolean'
1072
1072
  v['content'] = content
1073
1073
  return v
1074
+ elif keyword == 'dialog':
1075
+ dialog = symbolRecord['dialog']
1076
+ content = dialog.lineEdit.text() if symbolRecord['result'] == QDialog.Accepted else ''
1077
+ v = {}
1078
+ v['type'] = 'text'
1079
+ v['content'] = content
1080
+ return v
1074
1081
  return None
1075
1082
 
1076
1083
  def v_count(self, v):
@@ -1,11 +1,12 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: easycoder
3
- Version: 250714.1
3
+ Version: 250718.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>
7
7
  Description-Content-Type: text/markdown
8
8
  Classifier: License :: OSI Approved :: MIT License
9
+ License-File: LICENSE
9
10
  Requires-Dist: pytz
10
11
  Requires-Dist: requests
11
12
  Requires-Dist: psutil
@@ -0,0 +1,16 @@
1
+ easycoder/README.md,sha256=BVXmYphcTJ6q6RN_9L6HtQukgCnOjSLVIsTM3lk-9aM,587
2
+ easycoder/__init__.py,sha256=p8s4OHASTXKcaL9Rb9-SuXaILKYna6K9BbHdFEVEMWw,262
3
+ easycoder/ec_classes.py,sha256=PWPaJuTfaWD4-tgT-2WWOgeFV_jXxlxyKCxvXyylCUU,1824
4
+ easycoder/ec_compiler.py,sha256=9byLqJZgMHAyFFyD8eGhY77oTsY1GY1aVcVrU4JAbd4,5287
5
+ easycoder/ec_condition.py,sha256=YXvSBQKEzKGCcgUGo3Qp8iHolXmm2BpEm0NimSDszIM,785
6
+ easycoder/ec_core.py,sha256=he_8KO2lSR9vcj9_2jauBBvwE2QqkeSVDEcagHdVnHU,99575
7
+ easycoder/ec_handler.py,sha256=ohf3xUuWw_Qb5SZnulGtDhvCb11kvWtYfgbQTiOXpIY,2261
8
+ easycoder/ec_program.py,sha256=VIpy8mEdLy-zAzqFZtmzvx6NxmgbBJb47ESC_tDOz9k,10004
9
+ easycoder/ec_pyside.py,sha256=ELqG95R8zcYcxCGgb0pD3GTmpS9NhXYgE2UejeYlO0c,40695
10
+ easycoder/ec_timestamp.py,sha256=myQnnF-mT31_1dpQKv2VEAu4BCcbypvMdzq7_DUi1xc,277
11
+ easycoder/ec_value.py,sha256=zgDJTJhIg3yOvmnnKIfccIizmIhGbtvL_ghLTL1T5fg,2516
12
+ easycoder-250718.1.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
13
+ easycoder-250718.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
14
+ easycoder-250718.1.dist-info/WHEEL,sha256=Dyt6SBfaasWElUrURkknVFAZDHSTwxg3PaTza7RSbkY,100
15
+ easycoder-250718.1.dist-info/METADATA,sha256=pkBltNxENp45nVxwQyZOU1hxSxKUv3fMfMfwcjDx6-M,6897
16
+ easycoder-250718.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: flit 3.10.1
2
+ Generator: flit 3.12.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py2-none-any
5
5
  Tag: py3-none-any
@@ -1,16 +0,0 @@
1
- easycoder/README.md,sha256=BVXmYphcTJ6q6RN_9L6HtQukgCnOjSLVIsTM3lk-9aM,587
2
- easycoder/__init__.py,sha256=YXMrF9XJdrVE65FsvptHPpqon4WNYMFRLcCzGO89FQM,262
3
- easycoder/ec_classes.py,sha256=PWPaJuTfaWD4-tgT-2WWOgeFV_jXxlxyKCxvXyylCUU,1824
4
- easycoder/ec_compiler.py,sha256=9byLqJZgMHAyFFyD8eGhY77oTsY1GY1aVcVrU4JAbd4,5287
5
- easycoder/ec_condition.py,sha256=YXvSBQKEzKGCcgUGo3Qp8iHolXmm2BpEm0NimSDszIM,785
6
- easycoder/ec_core.py,sha256=UHqQtG9LGVP8mfWY3OIr_jdphPB8R9kExiG7ycNYeTk,99557
7
- easycoder/ec_handler.py,sha256=ohf3xUuWw_Qb5SZnulGtDhvCb11kvWtYfgbQTiOXpIY,2261
8
- easycoder/ec_program.py,sha256=IDpfq9oghFJMJyRD9uab31VOP5MOF4M7kcUVfDn7d4I,9992
9
- easycoder/ec_pyside.py,sha256=kmMJgRbpIwC7sQlvaAXhl_NpFGCKwjkUACkfbE0XM7k,40440
10
- easycoder/ec_timestamp.py,sha256=myQnnF-mT31_1dpQKv2VEAu4BCcbypvMdzq7_DUi1xc,277
11
- easycoder/ec_value.py,sha256=zgDJTJhIg3yOvmnnKIfccIizmIhGbtvL_ghLTL1T5fg,2516
12
- easycoder-250714.1.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
13
- easycoder-250714.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
14
- easycoder-250714.1.dist-info/WHEEL,sha256=ssQ84EZ5gH1pCOujd3iW7HClo_O_aDaClUbX4B8bjKY,100
15
- easycoder-250714.1.dist-info/METADATA,sha256=mny4_cyzq7IRs9KXImnQ-EnfAVi8a4bNu9x_CwdEYiA,6875
16
- easycoder-250714.1.dist-info/RECORD,,