easycoder 250721.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 +22 -13
- {easycoder-250721.1.dist-info → easycoder-250721.2.dist-info}/METADATA +1 -1
- {easycoder-250721.1.dist-info → easycoder-250721.2.dist-info}/RECORD +7 -7
- {easycoder-250721.1.dist-info → easycoder-250721.2.dist-info}/WHEEL +0 -0
- {easycoder-250721.1.dist-info → easycoder-250721.2.dist-info}/entry_points.txt +0 -0
- {easycoder-250721.1.dist-info → easycoder-250721.2.dist-info}/licenses/LICENSE +0 -0
easycoder/__init__.py
CHANGED
easycoder/ec_pyside.py
CHANGED
|
@@ -321,19 +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
325
|
if self.peek() == 'type':
|
|
327
326
|
self.nextToken()
|
|
328
327
|
command['type'] = self.nextToken()
|
|
329
328
|
elif self.peek() == 'title':
|
|
330
329
|
self.nextToken()
|
|
331
|
-
title = self.nextValue()
|
|
330
|
+
command['title'] = self.nextValue()
|
|
332
331
|
elif self.peek() == 'prompt':
|
|
333
332
|
self.nextToken()
|
|
334
333
|
command['prompt'] = self.nextValue()
|
|
334
|
+
elif self.peek() == 'value':
|
|
335
|
+
self.nextToken()
|
|
336
|
+
command['value'] = self.nextValue()
|
|
335
337
|
else: break
|
|
336
|
-
command['title'] = self.compileConstant(
|
|
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('')
|
|
337
341
|
self.add(command)
|
|
338
342
|
return True
|
|
339
343
|
|
|
@@ -467,13 +471,17 @@ class Graphics(Handler):
|
|
|
467
471
|
dialog = QDialog()
|
|
468
472
|
mainLayout = QVBoxLayout(dialog)
|
|
469
473
|
dialog.setWindowTitle(self.getRuntimeValue(command['title']))
|
|
470
|
-
dialogType = command['type']
|
|
474
|
+
dialogType = command['type'].lower()
|
|
471
475
|
dialog.dialogType = dialogType
|
|
472
|
-
|
|
476
|
+
prompt = self.getRuntimeValue(command['prompt'])
|
|
477
|
+
if dialogType in ['confirm', 'lineedit']:
|
|
473
478
|
if dialogType == 'confirm':
|
|
474
|
-
mainLayout.addWidget(QLabel(
|
|
475
|
-
elif dialogType == '
|
|
479
|
+
mainLayout.addWidget(QLabel(prompt))
|
|
480
|
+
elif dialogType == 'lineedit':
|
|
481
|
+
mainLayout.addWidget(QLabel(prompt))
|
|
476
482
|
dialog.lineEdit = QLineEdit(dialog)
|
|
483
|
+
dialog.value = self.getRuntimeValue(command['value'])
|
|
484
|
+
dialog.lineEdit.setText(dialog.value)
|
|
477
485
|
mainLayout.addWidget(dialog.lineEdit)
|
|
478
486
|
buttonBox = QDialogButtonBox(QDialogButtonBox.Ok | QDialogButtonBox.Cancel, dialog)
|
|
479
487
|
buttonBox.accepted.connect(dialog.accept)
|
|
@@ -958,12 +966,13 @@ class Graphics(Handler):
|
|
|
958
966
|
elif 'dialog' in command:
|
|
959
967
|
record = self.getVariable(command['dialog'])
|
|
960
968
|
dialog = record['dialog']
|
|
961
|
-
if dialog.dialogType
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
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
|
|
967
976
|
return self.nextPC()
|
|
968
977
|
|
|
969
978
|
# Start the graphics
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: easycoder
|
|
3
|
-
Version: 250721.
|
|
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-250721.
|
|
13
|
-
easycoder-250721.
|
|
14
|
-
easycoder-250721.
|
|
15
|
-
easycoder-250721.
|
|
16
|
-
easycoder-250721.
|
|
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
|