easycoder 250720.1__py2.py3-none-any.whl → 250721.2__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_pyside.py +32 -13
- {easycoder-250720.1.dist-info → easycoder-250721.2.dist-info}/METADATA +1 -1
- {easycoder-250720.1.dist-info → easycoder-250721.2.dist-info}/RECORD +7 -7
- {easycoder-250720.1.dist-info → easycoder-250721.2.dist-info}/WHEEL +0 -0
- {easycoder-250720.1.dist-info → easycoder-250721.2.dist-info}/entry_points.txt +0 -0
- {easycoder-250720.1.dist-info → easycoder-250721.2.dist-info}/licenses/LICENSE +0 -0
easycoder/__init__.py
CHANGED
easycoder/ec_pyside.py
CHANGED
|
@@ -321,16 +321,23 @@ class Graphics(Handler):
|
|
|
321
321
|
if self.nextIsSymbol():
|
|
322
322
|
command['window'] = self.getSymbolRecord()['name']
|
|
323
323
|
else: command['window'] = None
|
|
324
|
-
title = ''
|
|
325
324
|
while True:
|
|
326
|
-
if self.peek() == '
|
|
327
|
-
self.nextToken()
|
|
328
|
-
title = self.nextValue()
|
|
329
|
-
elif self.peek() == 'type':
|
|
325
|
+
if self.peek() == 'type':
|
|
330
326
|
self.nextToken()
|
|
331
327
|
command['type'] = self.nextToken()
|
|
328
|
+
elif self.peek() == 'title':
|
|
329
|
+
self.nextToken()
|
|
330
|
+
command['title'] = self.nextValue()
|
|
331
|
+
elif self.peek() == 'prompt':
|
|
332
|
+
self.nextToken()
|
|
333
|
+
command['prompt'] = self.nextValue()
|
|
334
|
+
elif self.peek() == 'value':
|
|
335
|
+
self.nextToken()
|
|
336
|
+
command['value'] = self.nextValue()
|
|
332
337
|
else: break
|
|
333
|
-
command['title'] =
|
|
338
|
+
if not 'title' in command: command['title'] = self.compileConstant('')
|
|
339
|
+
if not 'value' in command: command['value'] = self.compileConstant('')
|
|
340
|
+
if not 'prompt' in command: command['prompt'] = self.compileConstant('')
|
|
334
341
|
self.add(command)
|
|
335
342
|
return True
|
|
336
343
|
|
|
@@ -464,10 +471,17 @@ class Graphics(Handler):
|
|
|
464
471
|
dialog = QDialog()
|
|
465
472
|
mainLayout = QVBoxLayout(dialog)
|
|
466
473
|
dialog.setWindowTitle(self.getRuntimeValue(command['title']))
|
|
467
|
-
dialogType = command['type']
|
|
468
|
-
|
|
469
|
-
|
|
474
|
+
dialogType = command['type'].lower()
|
|
475
|
+
dialog.dialogType = dialogType
|
|
476
|
+
prompt = self.getRuntimeValue(command['prompt'])
|
|
477
|
+
if dialogType in ['confirm', 'lineedit']:
|
|
478
|
+
if dialogType == 'confirm':
|
|
479
|
+
mainLayout.addWidget(QLabel(prompt))
|
|
480
|
+
elif dialogType == 'lineedit':
|
|
481
|
+
mainLayout.addWidget(QLabel(prompt))
|
|
470
482
|
dialog.lineEdit = QLineEdit(dialog)
|
|
483
|
+
dialog.value = self.getRuntimeValue(command['value'])
|
|
484
|
+
dialog.lineEdit.setText(dialog.value)
|
|
471
485
|
mainLayout.addWidget(dialog.lineEdit)
|
|
472
486
|
buttonBox = QDialogButtonBox(QDialogButtonBox.Ok | QDialogButtonBox.Cancel, dialog)
|
|
473
487
|
buttonBox.accepted.connect(dialog.accept)
|
|
@@ -476,7 +490,7 @@ class Graphics(Handler):
|
|
|
476
490
|
record['dialog'] = dialog
|
|
477
491
|
return self.nextPC()
|
|
478
492
|
|
|
479
|
-
# Creates a message box but doesn'
|
|
493
|
+
# Creates a message box but doesn't run it
|
|
480
494
|
def r_createMessageBox(self, command, record):
|
|
481
495
|
data = {}
|
|
482
496
|
data['window'] = command['window']
|
|
@@ -952,7 +966,13 @@ class Graphics(Handler):
|
|
|
952
966
|
elif 'dialog' in command:
|
|
953
967
|
record = self.getVariable(command['dialog'])
|
|
954
968
|
dialog = record['dialog']
|
|
955
|
-
|
|
969
|
+
if dialog.dialogType in ['confirm', 'lineedit']:
|
|
970
|
+
if dialog.dialogType == 'confirm':
|
|
971
|
+
record['result'] = True if dialog.exec() == QDialog.Accepted else False
|
|
972
|
+
elif dialog.dialogType == 'lineedit':
|
|
973
|
+
if dialog.exec() == QDialog.Accepted:
|
|
974
|
+
record['result'] = dialog.lineEdit.text()
|
|
975
|
+
else: record['result'] = dialog.value
|
|
956
976
|
return self.nextPC()
|
|
957
977
|
|
|
958
978
|
# Start the graphics
|
|
@@ -1072,8 +1092,7 @@ class Graphics(Handler):
|
|
|
1072
1092
|
v['content'] = content
|
|
1073
1093
|
return v
|
|
1074
1094
|
elif keyword == 'dialog':
|
|
1075
|
-
|
|
1076
|
-
content = dialog.lineEdit.text() if symbolRecord['result'] == QDialog.Accepted else ''
|
|
1095
|
+
content = symbolRecord['result']
|
|
1077
1096
|
v = {}
|
|
1078
1097
|
v['type'] = 'text'
|
|
1079
1098
|
v['content'] = content
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: easycoder
|
|
3
|
-
Version:
|
|
3
|
+
Version: 250721.2
|
|
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=nC_1RtMTogUld4h8ws28dfYGTZpNk52HidBAIKiUDAQ,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
8
|
easycoder/ec_program.py,sha256=FxM9I3Wu1sXBkM5byaKjXyu0MGiILSaa_VeAtuw1g9Q,10091
|
|
9
|
-
easycoder/ec_pyside.py,sha256=
|
|
9
|
+
easycoder/ec_pyside.py,sha256=vBGGKGSXlIARxAUwMXOrdxkWguqMlNnUo2SR9dwCbw8,41831
|
|
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.2.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
|
|
13
|
+
easycoder-250721.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
14
|
+
easycoder-250721.2.dist-info/WHEEL,sha256=Dyt6SBfaasWElUrURkknVFAZDHSTwxg3PaTza7RSbkY,100
|
|
15
|
+
easycoder-250721.2.dist-info/METADATA,sha256=q9GXcpW8MYIK-00-ltZEYIQKXGvyNQsntAV6dLmcbv0,6897
|
|
16
|
+
easycoder-250721.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|