easycoder 250718.1__py2.py3-none-any.whl → 250721.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_program.py +4 -2
- easycoder/ec_pyside.py +20 -10
- {easycoder-250718.1.dist-info → easycoder-250721.1.dist-info}/METADATA +1 -1
- {easycoder-250718.1.dist-info → easycoder-250721.1.dist-info}/RECORD +8 -8
- {easycoder-250718.1.dist-info → easycoder-250721.1.dist-info}/WHEEL +0 -0
- {easycoder-250718.1.dist-info → easycoder-250721.1.dist-info}/entry_points.txt +0 -0
- {easycoder-250718.1.dist-info → easycoder-250721.1.dist-info}/licenses/LICENSE +0 -0
easycoder/__init__.py
CHANGED
easycoder/ec_program.py
CHANGED
|
@@ -349,8 +349,10 @@ class Program:
|
|
|
349
349
|
return 0
|
|
350
350
|
v1 = val1['content']
|
|
351
351
|
v2 = val2['content']
|
|
352
|
-
if v1 == None and v2 != None or v1 != None and v2 == None:
|
|
353
|
-
return 0
|
|
352
|
+
# if v1 == None and v2 != None or v1 != None and v2 == None:
|
|
353
|
+
# return 0
|
|
354
|
+
if v1 == None and v2 != None: return -1
|
|
355
|
+
elif v2 == None and v1 != None: return 1
|
|
354
356
|
if v1 != None and val1['type'] == 'int':
|
|
355
357
|
if not val2['type'] == 'int':
|
|
356
358
|
if type(v2) is str:
|
easycoder/ec_pyside.py
CHANGED
|
@@ -323,14 +323,17 @@ class Graphics(Handler):
|
|
|
323
323
|
else: command['window'] = None
|
|
324
324
|
title = ''
|
|
325
325
|
while True:
|
|
326
|
-
if self.peek() == '
|
|
326
|
+
if self.peek() == 'type':
|
|
327
|
+
self.nextToken()
|
|
328
|
+
command['type'] = self.nextToken()
|
|
329
|
+
elif self.peek() == 'title':
|
|
327
330
|
self.nextToken()
|
|
328
331
|
title = self.nextValue()
|
|
329
|
-
elif self.peek() == '
|
|
332
|
+
elif self.peek() == 'prompt':
|
|
330
333
|
self.nextToken()
|
|
331
|
-
command['
|
|
334
|
+
command['prompt'] = self.nextValue()
|
|
332
335
|
else: break
|
|
333
|
-
command['title'] = title
|
|
336
|
+
command['title'] = self.compileConstant(title)
|
|
334
337
|
self.add(command)
|
|
335
338
|
return True
|
|
336
339
|
|
|
@@ -465,8 +468,11 @@ class Graphics(Handler):
|
|
|
465
468
|
mainLayout = QVBoxLayout(dialog)
|
|
466
469
|
dialog.setWindowTitle(self.getRuntimeValue(command['title']))
|
|
467
470
|
dialogType = command['type']
|
|
468
|
-
|
|
469
|
-
|
|
471
|
+
dialog.dialogType = dialogType
|
|
472
|
+
if dialogType in ['confirm', 'lineEdit']:
|
|
473
|
+
if dialogType == 'confirm':
|
|
474
|
+
mainLayout.addWidget(QLabel(self.getRuntimeValue(command['prompt'])))
|
|
475
|
+
elif dialogType == 'lineinput':
|
|
470
476
|
dialog.lineEdit = QLineEdit(dialog)
|
|
471
477
|
mainLayout.addWidget(dialog.lineEdit)
|
|
472
478
|
buttonBox = QDialogButtonBox(QDialogButtonBox.Ok | QDialogButtonBox.Cancel, dialog)
|
|
@@ -476,7 +482,7 @@ class Graphics(Handler):
|
|
|
476
482
|
record['dialog'] = dialog
|
|
477
483
|
return self.nextPC()
|
|
478
484
|
|
|
479
|
-
# Creates a message box but doesn'
|
|
485
|
+
# Creates a message box but doesn't run it
|
|
480
486
|
def r_createMessageBox(self, command, record):
|
|
481
487
|
data = {}
|
|
482
488
|
data['window'] = command['window']
|
|
@@ -952,7 +958,12 @@ class Graphics(Handler):
|
|
|
952
958
|
elif 'dialog' in command:
|
|
953
959
|
record = self.getVariable(command['dialog'])
|
|
954
960
|
dialog = record['dialog']
|
|
955
|
-
|
|
961
|
+
if dialog.dialogType == 'confirm':
|
|
962
|
+
record['result'] = True if dialog.exec() == QDialog.Accepted else False
|
|
963
|
+
elif dialog.dialogType == 'lineinput':
|
|
964
|
+
if dialog.exec() == QDialog.Accepted:
|
|
965
|
+
record['result'] = dialog.lineEdit.text()
|
|
966
|
+
else: return ''
|
|
956
967
|
return self.nextPC()
|
|
957
968
|
|
|
958
969
|
# Start the graphics
|
|
@@ -1072,8 +1083,7 @@ class Graphics(Handler):
|
|
|
1072
1083
|
v['content'] = content
|
|
1073
1084
|
return v
|
|
1074
1085
|
elif keyword == 'dialog':
|
|
1075
|
-
|
|
1076
|
-
content = dialog.lineEdit.text() if symbolRecord['result'] == QDialog.Accepted else ''
|
|
1086
|
+
content = symbolRecord['result']
|
|
1077
1087
|
v = {}
|
|
1078
1088
|
v['type'] = 'text'
|
|
1079
1089
|
v['content'] = content
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: easycoder
|
|
3
|
-
Version:
|
|
3
|
+
Version: 250721.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=xAuCHNIDNn3RDSa_sEh8fW65cAHRYorwbRdWuSv1M34,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
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=FxM9I3Wu1sXBkM5byaKjXyu0MGiILSaa_VeAtuw1g9Q,10091
|
|
9
|
+
easycoder/ec_pyside.py,sha256=q-6amHVMM12fUOASnsXJvTWcWPElCRSDk_yAMfe2PsA,41214
|
|
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-250721.1.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
|
|
13
|
+
easycoder-250721.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
14
|
+
easycoder-250721.1.dist-info/WHEEL,sha256=Dyt6SBfaasWElUrURkknVFAZDHSTwxg3PaTza7RSbkY,100
|
|
15
|
+
easycoder-250721.1.dist-info/METADATA,sha256=_Wt7tdXZbeRQpqu2HCAYKuOLk804iby__NCgV6m2jgk,6897
|
|
16
|
+
easycoder-250721.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|