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 +1 -1
- easycoder/ec_core.py +1 -1
- easycoder/ec_program.py +8 -8
- easycoder/ec_pyside.py +17 -10
- {easycoder-250714.1.dist-info → easycoder-250718.1.dist-info}/METADATA +3 -2
- easycoder-250718.1.dist-info/RECORD +16 -0
- {easycoder-250714.1.dist-info → easycoder-250718.1.dist-info}/WHEEL +1 -1
- easycoder-250714.1.dist-info/RECORD +0 -16
- {easycoder-250714.1.dist-info → easycoder-250718.1.dist-info}/entry_points.txt +0 -0
- {easycoder-250714.1.dist-info → easycoder-250718.1.dist-info/licenses}/LICENSE +0 -0
easycoder/__init__.py
CHANGED
easycoder/ec_core.py
CHANGED
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
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
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
|
-
|
|
471
|
-
mainLayout.addWidget(
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
mainLayout.addWidget(
|
|
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
|
-
|
|
954
|
-
|
|
955
|
-
|
|
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.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: easycoder
|
|
3
|
-
Version:
|
|
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,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,,
|
|
File without changes
|
|
File without changes
|