easycoder 250706.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 -4
- easycoder/ec_program.py +8 -8
- easycoder/ec_pyside.py +23 -12
- {easycoder-250706.1.dist-info → easycoder-250718.1.dist-info}/METADATA +1 -1
- {easycoder-250706.1.dist-info → easycoder-250718.1.dist-info}/RECORD +9 -9
- {easycoder-250706.1.dist-info → easycoder-250718.1.dist-info}/WHEEL +0 -0
- {easycoder-250706.1.dist-info → easycoder-250718.1.dist-info}/entry_points.txt +0 -0
- {easycoder-250706.1.dist-info → easycoder-250718.1.dist-info}/licenses/LICENSE +0 -0
easycoder/__init__.py
CHANGED
easycoder/ec_core.py
CHANGED
|
@@ -1941,9 +1941,6 @@ class Core(Handler):
|
|
|
1941
1941
|
if keyword == 'module':
|
|
1942
1942
|
value['type'] = 'module'
|
|
1943
1943
|
return value
|
|
1944
|
-
|
|
1945
|
-
if keyword == 'ssh':
|
|
1946
|
-
pass
|
|
1947
1944
|
|
|
1948
1945
|
if keyword in ['ssh', 'variable']:
|
|
1949
1946
|
value['type'] = 'symbol'
|
|
@@ -2638,7 +2635,7 @@ class Core(Handler):
|
|
|
2638
2635
|
v = self.getRuntimeValue(v['content'])
|
|
2639
2636
|
value = {}
|
|
2640
2637
|
value['type'] = 'int'
|
|
2641
|
-
value['content'] = int(v)
|
|
2638
|
+
value['content'] = int(v) if v != '' else 0
|
|
2642
2639
|
return value
|
|
2643
2640
|
|
|
2644
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
|
-
|
|
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
|
@@ -326,10 +326,9 @@ class Graphics(Handler):
|
|
|
326
326
|
if self.peek() == 'title':
|
|
327
327
|
self.nextToken()
|
|
328
328
|
title = self.nextValue()
|
|
329
|
-
elif self.peek() == '
|
|
329
|
+
elif self.peek() == 'type':
|
|
330
330
|
self.nextToken()
|
|
331
|
-
|
|
332
|
-
command['layout'] = self.getSymbolRecord()['name']
|
|
331
|
+
command['type'] = self.nextToken()
|
|
333
332
|
else: break
|
|
334
333
|
command['title'] = title
|
|
335
334
|
self.add(command)
|
|
@@ -462,14 +461,18 @@ class Graphics(Handler):
|
|
|
462
461
|
return self.nextPC()
|
|
463
462
|
|
|
464
463
|
def r_createDialog(self, command, record):
|
|
465
|
-
layout = self.getVariable(command['layout'])['widget']
|
|
466
464
|
dialog = QDialog()
|
|
465
|
+
mainLayout = QVBoxLayout(dialog)
|
|
467
466
|
dialog.setWindowTitle(self.getRuntimeValue(command['title']))
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
467
|
+
dialogType = command['type']
|
|
468
|
+
if dialogType in ['lineinput']:
|
|
469
|
+
if dialogType == 'lineinput':
|
|
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)
|
|
473
476
|
record['dialog'] = dialog
|
|
474
477
|
return self.nextPC()
|
|
475
478
|
|
|
@@ -501,7 +504,7 @@ class Graphics(Handler):
|
|
|
501
504
|
|
|
502
505
|
# Declare a dialog variable
|
|
503
506
|
def k_dialog(self, command):
|
|
504
|
-
return self.compileVariable(command)
|
|
507
|
+
return self.compileVariable(command, 'gui')
|
|
505
508
|
|
|
506
509
|
def r_dialog(self, command):
|
|
507
510
|
return self.nextPC()
|
|
@@ -947,8 +950,9 @@ class Graphics(Handler):
|
|
|
947
950
|
window = self.getVariable(command['window'])['window']
|
|
948
951
|
window.show()
|
|
949
952
|
elif 'dialog' in command:
|
|
950
|
-
|
|
951
|
-
dialog
|
|
953
|
+
record = self.getVariable(command['dialog'])
|
|
954
|
+
dialog = record['dialog']
|
|
955
|
+
record['result'] = dialog.exec()
|
|
952
956
|
return self.nextPC()
|
|
953
957
|
|
|
954
958
|
# Start the graphics
|
|
@@ -1067,6 +1071,13 @@ class Graphics(Handler):
|
|
|
1067
1071
|
v['type'] = 'boolean'
|
|
1068
1072
|
v['content'] = content
|
|
1069
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
|
|
1070
1081
|
return None
|
|
1071
1082
|
|
|
1072
1083
|
def v_count(self, v):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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>
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
easycoder/README.md,sha256=BVXmYphcTJ6q6RN_9L6HtQukgCnOjSLVIsTM3lk-9aM,587
|
|
2
|
-
easycoder/__init__.py,sha256=
|
|
2
|
+
easycoder/__init__.py,sha256=p8s4OHASTXKcaL9Rb9-SuXaILKYna6K9BbHdFEVEMWw,262
|
|
3
3
|
easycoder/ec_classes.py,sha256=PWPaJuTfaWD4-tgT-2WWOgeFV_jXxlxyKCxvXyylCUU,1824
|
|
4
4
|
easycoder/ec_compiler.py,sha256=9byLqJZgMHAyFFyD8eGhY77oTsY1GY1aVcVrU4JAbd4,5287
|
|
5
5
|
easycoder/ec_condition.py,sha256=YXvSBQKEzKGCcgUGo3Qp8iHolXmm2BpEm0NimSDszIM,785
|
|
6
|
-
easycoder/ec_core.py,sha256=
|
|
6
|
+
easycoder/ec_core.py,sha256=he_8KO2lSR9vcj9_2jauBBvwE2QqkeSVDEcagHdVnHU,99575
|
|
7
7
|
easycoder/ec_handler.py,sha256=ohf3xUuWw_Qb5SZnulGtDhvCb11kvWtYfgbQTiOXpIY,2261
|
|
8
|
-
easycoder/ec_program.py,sha256=
|
|
9
|
-
easycoder/ec_pyside.py,sha256
|
|
8
|
+
easycoder/ec_program.py,sha256=VIpy8mEdLy-zAzqFZtmzvx6NxmgbBJb47ESC_tDOz9k,10004
|
|
9
|
+
easycoder/ec_pyside.py,sha256=ELqG95R8zcYcxCGgb0pD3GTmpS9NhXYgE2UejeYlO0c,40695
|
|
10
10
|
easycoder/ec_timestamp.py,sha256=myQnnF-mT31_1dpQKv2VEAu4BCcbypvMdzq7_DUi1xc,277
|
|
11
11
|
easycoder/ec_value.py,sha256=zgDJTJhIg3yOvmnnKIfccIizmIhGbtvL_ghLTL1T5fg,2516
|
|
12
|
-
easycoder-
|
|
13
|
-
easycoder-
|
|
14
|
-
easycoder-
|
|
15
|
-
easycoder-
|
|
16
|
-
easycoder-
|
|
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,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|