easycoder 250721.1__tar.gz → 250722.1__tar.gz
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-250721.1 → easycoder-250722.1}/PKG-INFO +2 -3
- {easycoder-250721.1 → easycoder-250722.1}/easycoder/__init__.py +3 -1
- {easycoder-250721.1 → easycoder-250722.1}/easycoder/ec_core.py +8 -7
- {easycoder-250721.1 → easycoder-250722.1}/easycoder/ec_program.py +8 -12
- {easycoder-250721.1 → easycoder-250722.1}/easycoder/ec_pyside.py +33 -13
- {easycoder-250721.1 → easycoder-250722.1}/.gitignore +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/LICENSE +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/README.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/backdrop.jpg +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/README.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/README.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/conditions/boolean.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/conditions/empty.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/conditions/ends.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/conditions/even.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/conditions/exists.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/conditions/greater.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/conditions/hasProperty.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/conditions/includes.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/conditions/is.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/conditions/less.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/conditions/list.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/conditions/none.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/conditions/not.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/conditions/numeric.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/conditions/object.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/conditions/odd.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/conditions/starts.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/conditions/string.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/add.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/append.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/assert.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/begin.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/clear.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/close.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/create.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/debug.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/decrement.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/delete.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/divide.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/exit.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/file.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/fork.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/get.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/go.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/gosub.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/if.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/import.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/increment.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/index.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/init.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/input.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/load.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/lock.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/log.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/module.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/multiply.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/negate.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/on.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/open.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/pop.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/post.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/print.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/push.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/put.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/read.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/release.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/replace.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/return.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/run.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/save.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/script.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/send.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/set.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/shuffle.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/split.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/stack.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/stop.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/system.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/take.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/toggle.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/truncate.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/unlock.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/use.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/variable.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/wait.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/while.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/keywords/write.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/arg.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/args.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/cos.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/datime.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/decode.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/element.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/elements.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/empty.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/encode.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/error.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/files.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/float.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/from.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/hash.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/index.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/integer.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/json.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/keys.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/left.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/length.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/lowercase.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/memory.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/modification.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/modulo.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/newline.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/now.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/position.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/property.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/random.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/right.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/sin.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/stringify.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/tab.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/tan.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/timestamp.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/today.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/trim.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/type.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/uppercase.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/value.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/core/values/weekday.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/graphics/README.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/graphics/keywords/attach.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/graphics/keywords/close.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/graphics/keywords/create.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/graphics/keywords/ellipse.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/graphics/keywords/image.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/graphics/keywords/move.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/graphics/keywords/on.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/graphics/keywords/rectangle.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/graphics/keywords/render.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/graphics/keywords/run.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/graphics/keywords/set.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/graphics/keywords/text.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/graphics/values/attribute.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/doc/graphics/values/window.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/easycoder/README.md +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/easycoder/ec_classes.py +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/easycoder/ec_compiler.py +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/easycoder/ec_condition.py +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/easycoder/ec_handler.py +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/easycoder/ec_timestamp.py +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/easycoder/ec_value.py +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/images/Semoigo Dawn.jpg +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/json/graphics-demo.json +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/plugins/ec_keyboard.py +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/plugins/ec_p100.py +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/plugins/ec_pyside6.py +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/plugins/points.py +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/pyproject.toml +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/scripts/benchmark.ecs +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/scripts/config.ecg +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/scripts/ec_keyboard.py +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/scripts/findxr.ecs +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/scripts/fizzbuzz.ecs +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/scripts/hello.ecs +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/scripts/points.ecs +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/scripts/test.ecs +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/scripts/tests.ecs +0 -0
- {easycoder-250721.1 → easycoder-250722.1}/testrc.py +0 -0
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
2
|
Name: easycoder
|
|
3
|
-
Version:
|
|
3
|
+
Version: 250722.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
|
|
10
9
|
Requires-Dist: pytz
|
|
11
10
|
Requires-Dist: requests
|
|
12
11
|
Requires-Dist: psutil
|
|
@@ -1798,13 +1798,14 @@ class Core(Handler):
|
|
|
1798
1798
|
|
|
1799
1799
|
# Use a plugin module
|
|
1800
1800
|
def k_use(self, command):
|
|
1801
|
-
if self.nextIs('
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1801
|
+
if self.nextIs('plugin'):
|
|
1802
|
+
if self.nextIs('graphics'):
|
|
1803
|
+
print('Loading graphics module')
|
|
1804
|
+
from .ec_pyside import Graphics
|
|
1805
|
+
self.program.graphics = Graphics
|
|
1806
|
+
self.program.useClass(Graphics)
|
|
1807
|
+
return True
|
|
1808
|
+
return False
|
|
1808
1809
|
|
|
1809
1810
|
# Declare a general-purpose variable
|
|
1810
1811
|
def k_variable(self, command):
|
|
@@ -22,7 +22,6 @@ class Program:
|
|
|
22
22
|
if len(argv) == 0:
|
|
23
23
|
print('No script supplied')
|
|
24
24
|
exit()
|
|
25
|
-
self.classes=[Core]
|
|
26
25
|
scriptName = argv
|
|
27
26
|
|
|
28
27
|
f = open(scriptName, 'r')
|
|
@@ -44,7 +43,7 @@ class Program:
|
|
|
44
43
|
self.value = self.compiler.value
|
|
45
44
|
self.condition = self.compiler.condition
|
|
46
45
|
self.graphics = None
|
|
47
|
-
self.
|
|
46
|
+
self.useClass(Core)
|
|
48
47
|
self.externalControl = False
|
|
49
48
|
self.ticker = 0
|
|
50
49
|
self.running = True
|
|
@@ -101,16 +100,13 @@ class Program:
|
|
|
101
100
|
module = module.replace('/','.').replace('.py','')
|
|
102
101
|
module = importlib.import_module(module)
|
|
103
102
|
plugin = getattr(module, args[1])
|
|
104
|
-
self.
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
self.domains
|
|
110
|
-
|
|
111
|
-
handler = clazz(self.compiler)
|
|
112
|
-
self.domains.append(handler)
|
|
113
|
-
self.domainIndex[handler.getName()] = handler
|
|
103
|
+
self.useClass(plugin)
|
|
104
|
+
|
|
105
|
+
# Use a specified class
|
|
106
|
+
def useClass(self, clazz):
|
|
107
|
+
handler = clazz(self.compiler)
|
|
108
|
+
self.domains.append(handler)
|
|
109
|
+
self.domainIndex[handler.getName()] = handler
|
|
114
110
|
|
|
115
111
|
# Get the domain list
|
|
116
112
|
def getDomains(self):
|
|
@@ -41,6 +41,7 @@ class Graphics(Handler):
|
|
|
41
41
|
Handler.__init__(self, compiler)
|
|
42
42
|
self.blocked = False
|
|
43
43
|
self.runOnTick = 0
|
|
44
|
+
self.vkb = False
|
|
44
45
|
|
|
45
46
|
def getName(self):
|
|
46
47
|
return 'graphics'
|
|
@@ -321,19 +322,23 @@ class Graphics(Handler):
|
|
|
321
322
|
if self.nextIsSymbol():
|
|
322
323
|
command['window'] = self.getSymbolRecord()['name']
|
|
323
324
|
else: command['window'] = None
|
|
324
|
-
title = ''
|
|
325
325
|
while True:
|
|
326
326
|
if self.peek() == 'type':
|
|
327
327
|
self.nextToken()
|
|
328
328
|
command['type'] = self.nextToken()
|
|
329
329
|
elif self.peek() == 'title':
|
|
330
330
|
self.nextToken()
|
|
331
|
-
title = self.nextValue()
|
|
331
|
+
command['title'] = self.nextValue()
|
|
332
332
|
elif self.peek() == 'prompt':
|
|
333
333
|
self.nextToken()
|
|
334
334
|
command['prompt'] = self.nextValue()
|
|
335
|
+
elif self.peek() == 'value':
|
|
336
|
+
self.nextToken()
|
|
337
|
+
command['value'] = self.nextValue()
|
|
335
338
|
else: break
|
|
336
|
-
command['title'] = self.compileConstant(
|
|
339
|
+
if not 'title' in command: command['title'] = self.compileConstant('')
|
|
340
|
+
if not 'value' in command: command['value'] = self.compileConstant('')
|
|
341
|
+
if not 'prompt' in command: command['prompt'] = self.compileConstant('')
|
|
337
342
|
self.add(command)
|
|
338
343
|
return True
|
|
339
344
|
|
|
@@ -467,13 +472,17 @@ class Graphics(Handler):
|
|
|
467
472
|
dialog = QDialog()
|
|
468
473
|
mainLayout = QVBoxLayout(dialog)
|
|
469
474
|
dialog.setWindowTitle(self.getRuntimeValue(command['title']))
|
|
470
|
-
dialogType = command['type']
|
|
475
|
+
dialogType = command['type'].lower()
|
|
471
476
|
dialog.dialogType = dialogType
|
|
472
|
-
|
|
477
|
+
prompt = self.getRuntimeValue(command['prompt'])
|
|
478
|
+
if dialogType in ['confirm', 'lineedit']:
|
|
473
479
|
if dialogType == 'confirm':
|
|
474
|
-
mainLayout.addWidget(QLabel(
|
|
475
|
-
elif dialogType == '
|
|
480
|
+
mainLayout.addWidget(QLabel(prompt))
|
|
481
|
+
elif dialogType == 'lineedit':
|
|
482
|
+
mainLayout.addWidget(QLabel(prompt))
|
|
476
483
|
dialog.lineEdit = QLineEdit(dialog)
|
|
484
|
+
dialog.value = self.getRuntimeValue(command['value'])
|
|
485
|
+
dialog.lineEdit.setText(dialog.value)
|
|
477
486
|
mainLayout.addWidget(dialog.lineEdit)
|
|
478
487
|
buttonBox = QDialogButtonBox(QDialogButtonBox.Ok | QDialogButtonBox.Cancel, dialog)
|
|
479
488
|
buttonBox.accepted.connect(dialog.accept)
|
|
@@ -958,12 +967,14 @@ class Graphics(Handler):
|
|
|
958
967
|
elif 'dialog' in command:
|
|
959
968
|
record = self.getVariable(command['dialog'])
|
|
960
969
|
dialog = record['dialog']
|
|
961
|
-
if dialog.dialogType
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
970
|
+
if dialog.dialogType in ['confirm', 'lineedit']:
|
|
971
|
+
if dialog.dialogType == 'confirm':
|
|
972
|
+
record['result'] = True if dialog.exec() == QDialog.Accepted else False
|
|
973
|
+
elif dialog.dialogType == 'lineedit':
|
|
974
|
+
if self.vkb: print('Show virtual keyboard')
|
|
975
|
+
if dialog.exec() == QDialog.Accepted:
|
|
976
|
+
record['result'] = dialog.lineEdit.text()
|
|
977
|
+
else: record['result'] = dialog.value
|
|
967
978
|
return self.nextPC()
|
|
968
979
|
|
|
969
980
|
# Start the graphics
|
|
@@ -990,6 +1001,15 @@ class Graphics(Handler):
|
|
|
990
1001
|
self.app.lastWindowClosed.connect(on_last_window_closed)
|
|
991
1002
|
self.app.exec()
|
|
992
1003
|
|
|
1004
|
+
# use virtual keyboard
|
|
1005
|
+
def k_use(self, command):
|
|
1006
|
+
if self.nextIs('virtual'):
|
|
1007
|
+
if self.nextIs('keyboard'):
|
|
1008
|
+
print('Use the virtual keyboard')
|
|
1009
|
+
self.vkb = True
|
|
1010
|
+
return True
|
|
1011
|
+
return False
|
|
1012
|
+
|
|
993
1013
|
# Declare a window variable
|
|
994
1014
|
def k_window(self, command):
|
|
995
1015
|
return self.compileVariable(command)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|