easycoder 250517.1__tar.gz → 250518.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-250518.1/.gitignore +4 -0
- {easycoder-250517.1 → easycoder-250518.1}/PKG-INFO +2 -3
- {easycoder-250517.1 → easycoder-250518.1}/easycoder/__init__.py +1 -1
- {easycoder-250517.1 → easycoder-250518.1}/easycoder/ec_pyside.py +6 -18
- easycoder-250518.1/testrc.py +3 -0
- easycoder-250517.1/.gitignore +0 -1
- easycoder-250517.1/plugins/rbr_ui.py +0 -82
- easycoder-250517.1/rbr_ui.code-workspace +0 -3
- easycoder-250517.1/rbrconf.code-workspace +0 -3
- easycoder-250517.1/scripts/README.md +0 -16
- easycoder-250517.1/scripts/connect.ecg +0 -62
- easycoder-250517.1/scripts/rbr_ui.ecs +0 -24
- easycoder-250517.1/scripts/rbr_ui.py +0 -3
- easycoder-250517.1/scripts/rbrconf.ecs +0 -1693
- easycoder-250517.1/scripts/testg.ecg +0 -48
- easycoder-250517.1/test.py +0 -3
- easycoder-250517.1/testrc.py +0 -3
- {easycoder-250517.1 → easycoder-250518.1}/LICENSE +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/README.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/README.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/README.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/conditions/boolean.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/conditions/empty.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/conditions/ends.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/conditions/even.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/conditions/exists.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/conditions/greater.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/conditions/hasProperty.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/conditions/includes.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/conditions/is.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/conditions/less.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/conditions/list.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/conditions/none.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/conditions/not.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/conditions/numeric.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/conditions/object.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/conditions/odd.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/conditions/starts.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/conditions/string.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/add.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/append.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/assert.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/begin.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/clear.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/close.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/create.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/debug.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/decrement.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/delete.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/divide.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/exit.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/file.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/fork.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/get.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/go.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/gosub.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/if.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/import.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/increment.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/index.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/init.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/input.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/load.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/lock.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/log.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/module.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/multiply.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/negate.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/open.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/pop.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/post.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/print.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/push.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/put.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/read.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/release.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/replace.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/return.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/run.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/save.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/script.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/set.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/split.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/stack.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/stop.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/system.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/take.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/toggle.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/truncate.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/unlock.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/variable.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/wait.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/while.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/keywords/write.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/arg.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/args.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/cos.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/datime.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/decode.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/element.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/elements.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/empty.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/encode.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/error.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/files.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/float.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/from.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/hash.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/index.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/integer.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/json.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/keys.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/left.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/length.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/lowercase.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/memory.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/modification.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/modulo.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/newline.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/now.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/position.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/property.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/random.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/right.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/sin.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/stringify.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/tab.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/tan.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/timestamp.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/today.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/trim.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/type.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/uppercase.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/value.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/core/values/weekday.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/graphics/README.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/graphics/keywords/attach.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/graphics/keywords/close.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/graphics/keywords/create.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/graphics/keywords/ellipse.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/graphics/keywords/image.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/graphics/keywords/move.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/graphics/keywords/on.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/graphics/keywords/rectangle.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/graphics/keywords/render.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/graphics/keywords/run.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/graphics/keywords/set.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/graphics/keywords/text.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/graphics/values/attribute.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/doc/graphics/values/window.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/easycoder/README.md +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/easycoder/ec_classes.py +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/easycoder/ec_compiler.py +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/easycoder/ec_condition.py +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/easycoder/ec_core.py +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/easycoder/ec_graphics.py +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/easycoder/ec_gutils.py +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/easycoder/ec_handler.py +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/easycoder/ec_program.py +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/easycoder/ec_timestamp.py +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/easycoder/ec_value.py +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/images/Semoigo Dawn.jpg +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/json/graphics-demo.json +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/plugins/ec_keyboard.py +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/plugins/ec_p100.py +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/plugins/ec_pyside6.py +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/plugins/points.py +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/pyproject.toml +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/scripts/benchmark.ecs +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/scripts/config.ecg +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/scripts/ec_keyboard.py +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/scripts/findxr.ecs +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/scripts/fizzbuzz.ecs +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/scripts/hello.ecs +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/scripts/points.ecs +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/scripts/test.ecs +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/scripts/tests.ecs +0 -0
- {easycoder-250517.1 → easycoder-250518.1}/ui.py +0 -0
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
2
|
Name: easycoder
|
|
3
|
-
Version:
|
|
3
|
+
Version: 250518.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: pyside6
|
|
@@ -37,11 +37,6 @@ from PySide6.QtWidgets import (
|
|
|
37
37
|
|
|
38
38
|
class Graphics(Handler):
|
|
39
39
|
|
|
40
|
-
class MainWindow(QMainWindow):
|
|
41
|
-
|
|
42
|
-
def __init__(self):
|
|
43
|
-
super().__init__()
|
|
44
|
-
|
|
45
40
|
def __init__(self, compiler):
|
|
46
41
|
Handler.__init__(self, compiler)
|
|
47
42
|
|
|
@@ -375,24 +370,17 @@ class Graphics(Handler):
|
|
|
375
370
|
return False
|
|
376
371
|
|
|
377
372
|
def r_createWindow(self, command, record):
|
|
378
|
-
window =
|
|
373
|
+
window = QMainWindow()
|
|
379
374
|
window.setWindowTitle(self.getRuntimeValue(command['title']))
|
|
380
375
|
w = self.getRuntimeValue(command['w'])
|
|
381
376
|
h = self.getRuntimeValue(command['h'])
|
|
382
377
|
x = command['x']
|
|
383
378
|
y = command['y']
|
|
384
|
-
if x == None: x = (self.screenWidth - w) / 2
|
|
379
|
+
if x == None: x = (self.program.screenWidth - w) / 2
|
|
385
380
|
else: x = self.getRuntimeValue(x)
|
|
386
|
-
if y == None: y = (self.screenHeight - h) / 2
|
|
381
|
+
if y == None: y = (self.program.screenHeight - h) / 2
|
|
387
382
|
else: y = self.getRuntimeValue(x)
|
|
388
383
|
window.setGeometry(x, y, w, h)
|
|
389
|
-
# content = self.getVariable(command['layout'])['widget']
|
|
390
|
-
# if isinstance(content, QWidget):
|
|
391
|
-
# container = content
|
|
392
|
-
# else:
|
|
393
|
-
# container = QWidget()
|
|
394
|
-
# container.setLayout(content)
|
|
395
|
-
# window.setCentralWidget(container)
|
|
396
384
|
record['window'] = window
|
|
397
385
|
return self.nextPC()
|
|
398
386
|
|
|
@@ -549,9 +537,9 @@ class Graphics(Handler):
|
|
|
549
537
|
def r_init(self, command):
|
|
550
538
|
self.app = QApplication(sys.argv)
|
|
551
539
|
screen = QApplication.screens()[0].size().toTuple()
|
|
552
|
-
self.screenWidth = screen[0]
|
|
553
|
-
self.screenHeight = screen[1]
|
|
554
|
-
print(f'Screen: {self.screenWidth}x{self.screenHeight}')
|
|
540
|
+
self.program.screenWidth = screen[0]
|
|
541
|
+
self.program.screenHeight = screen[1]
|
|
542
|
+
print(f'Screen: {self.program.screenWidth}x{self.program.screenHeight}')
|
|
555
543
|
return self.nextPC()
|
|
556
544
|
|
|
557
545
|
# Declare a label variable
|
easycoder-250517.1/.gitignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
*/__pycache__/*
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
from easycoder import Handler, FatalError, RuntimeError
|
|
2
|
-
from PySide6.QtWidgets import (
|
|
3
|
-
QApplication, QMainWindow, QVBoxLayout, QLabel, QPushButton, QWidget, QHBoxLayout, QSpacerItem, QSizePolicy
|
|
4
|
-
)
|
|
5
|
-
from PySide6.QtGui import QPixmap, QFont, QPalette, QBrush
|
|
6
|
-
from PySide6.QtCore import Qt
|
|
7
|
-
|
|
8
|
-
# This is the package that handles the RBR user interface.
|
|
9
|
-
|
|
10
|
-
class RBR_UI(Handler):
|
|
11
|
-
|
|
12
|
-
def __init__(self, compiler):
|
|
13
|
-
Handler.__init__(self, compiler)
|
|
14
|
-
|
|
15
|
-
def getName(self):
|
|
16
|
-
return 'points'
|
|
17
|
-
|
|
18
|
-
#############################################################################
|
|
19
|
-
# Keyword handlers
|
|
20
|
-
|
|
21
|
-
def k_rbr_ui(self, command):
|
|
22
|
-
return self.compileVariable(command, False)
|
|
23
|
-
|
|
24
|
-
def r_rbr_ui(self, command):
|
|
25
|
-
return self.nextPC()
|
|
26
|
-
|
|
27
|
-
# create the main UI
|
|
28
|
-
def k_create(self, command):
|
|
29
|
-
if self.nextIsSymbol():
|
|
30
|
-
record = self.getSymbolRecord()
|
|
31
|
-
if record['keyword'] == 'rbr_ui':
|
|
32
|
-
command['name'] = record['name']
|
|
33
|
-
self.skip('in')
|
|
34
|
-
if self.nextIsSymbol():
|
|
35
|
-
record = self.getSymbolRecord()
|
|
36
|
-
if record['keyword'] == 'window':
|
|
37
|
-
command['window'] = record['name']
|
|
38
|
-
self.addCommand(command)
|
|
39
|
-
return True
|
|
40
|
-
return False
|
|
41
|
-
|
|
42
|
-
def r_create(self, command):
|
|
43
|
-
record = self.getVariable(command['name'])
|
|
44
|
-
window = self.getVariable(command['window'])['window']
|
|
45
|
-
# Set the background image
|
|
46
|
-
palette = QPalette()
|
|
47
|
-
background_pixmap = QPixmap("/home/graham/dev/rbr/ui/main/backdrop.jpg")
|
|
48
|
-
palette.setBrush(QPalette.Window, QBrush(background_pixmap))
|
|
49
|
-
window.setPalette(palette)
|
|
50
|
-
|
|
51
|
-
# Main layout
|
|
52
|
-
main_widget = QWidget()
|
|
53
|
-
main_layout = QVBoxLayout(main_widget)
|
|
54
|
-
main_layout.setSpacing(10) # Set spacing between rows to 10
|
|
55
|
-
|
|
56
|
-
record['layout'] = main_widget
|
|
57
|
-
return self.nextPC()
|
|
58
|
-
|
|
59
|
-
#############################################################################
|
|
60
|
-
# Compile a value in this domain
|
|
61
|
-
def compileValue(self):
|
|
62
|
-
return None
|
|
63
|
-
|
|
64
|
-
#############################################################################
|
|
65
|
-
# Modify a value or leave it unchanged.
|
|
66
|
-
def modifyValue(self, value):
|
|
67
|
-
return value
|
|
68
|
-
|
|
69
|
-
#############################################################################
|
|
70
|
-
# Value handlers
|
|
71
|
-
|
|
72
|
-
def v_none(self, v):
|
|
73
|
-
return None
|
|
74
|
-
|
|
75
|
-
#############################################################################
|
|
76
|
-
# Compile a condition
|
|
77
|
-
def compileCondition(self):
|
|
78
|
-
condition = {}
|
|
79
|
-
return condition
|
|
80
|
-
|
|
81
|
-
#############################################################################
|
|
82
|
-
# Condition handlers
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# EasyCoder example scripts
|
|
2
|
-
The scripts in this folder are as follows:
|
|
3
|
-
|
|
4
|
-
`hello.ecs` is everybody's first program.
|
|
5
|
-
|
|
6
|
-
`fizzbuzz.ecs` is often set as a rather trivial programming challenge at job interviews.
|
|
7
|
-
|
|
8
|
-
`benchmark.ecs` is a program that can be translated into other languages and used to compare runtime performance.
|
|
9
|
-
|
|
10
|
-
`tests.ecs` is a selection of tests to verify the various language features. It could do with a major expansion to cover more of the language.
|
|
11
|
-
|
|
12
|
-
`points.ecs` shows how to use a plugin module, in this case one that manages points (pairs of values). This one is aimed at Python programmers wishing to extend the language.
|
|
13
|
-
|
|
14
|
-
`graphics-demo.ecg` demonstrates various features of the **_EasyCoder_** graphics system. Note that the filename extension is `.ecg` instead of `.ecs`, this being to signal to **_EasyCoder_** that it needs to call in the graphics module.
|
|
15
|
-
|
|
16
|
-
`wave.ecg` is a simulation of the "Mexican Wave".
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
! Connect to an AP
|
|
2
|
-
|
|
3
|
-
script Connect
|
|
4
|
-
|
|
5
|
-
layout Layout
|
|
6
|
-
layout Row
|
|
7
|
-
column Column
|
|
8
|
-
window Window
|
|
9
|
-
variable Value
|
|
10
|
-
variable Connected
|
|
11
|
-
variable IPAddr
|
|
12
|
-
variable HostName
|
|
13
|
-
variable HostSSID
|
|
14
|
-
variable HostPassword
|
|
15
|
-
variable DevicePassword
|
|
16
|
-
variable List
|
|
17
|
-
variable SSID
|
|
18
|
-
variable AccessPoints
|
|
19
|
-
variable N
|
|
20
|
-
variable P
|
|
21
|
-
|
|
22
|
-
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
23
|
-
! Specify an access point
|
|
24
|
-
Connect:
|
|
25
|
-
init Layout
|
|
26
|
-
|
|
27
|
-
init Row
|
|
28
|
-
put stringify AccessPoints into Value
|
|
29
|
-
add Listbox key `-APLIST-` and size `20 5` to Row
|
|
30
|
-
add Text text `Device SSID` and expand_x true to Row
|
|
31
|
-
add Input key `-SSID-` and size `20 1` to Row
|
|
32
|
-
add Row to Layout
|
|
33
|
-
|
|
34
|
-
init Row
|
|
35
|
-
add Button button_text `Connect` to Row
|
|
36
|
-
add Row to Layout
|
|
37
|
-
|
|
38
|
-
create Window `Connect`
|
|
39
|
-
layout Layout
|
|
40
|
-
|
|
41
|
-
on event `Connect` in Window
|
|
42
|
-
begin
|
|
43
|
-
put property `-SSID-` of the event into SSID
|
|
44
|
-
go to OpenConnection
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
stop
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
51
|
-
! Connect to the access point
|
|
52
|
-
OpenConnection:
|
|
53
|
-
system `nmcli dev wifi connect ` cat SSID cat ` password 00000000`
|
|
54
|
-
put system `hostname -I` into IPAddr
|
|
55
|
-
put the position of the last `.` in IPAddr into N
|
|
56
|
-
increment N
|
|
57
|
-
put left N of IPAddr into IPAddr
|
|
58
|
-
put IPAddr cat `1` into IPAddr
|
|
59
|
-
print `Connected to ` cat IPAddr
|
|
60
|
-
close Window
|
|
61
|
-
set Connected
|
|
62
|
-
stop
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
! rbr-ui.ecs
|
|
3
|
-
|
|
4
|
-
script RBR_UI
|
|
5
|
-
|
|
6
|
-
use graphics
|
|
7
|
-
|
|
8
|
-
import plugin RBR_UI from plugins/rbr_ui.py
|
|
9
|
-
|
|
10
|
-
window Window
|
|
11
|
-
rbr_ui MainPanel
|
|
12
|
-
|
|
13
|
-
debug step
|
|
14
|
-
|
|
15
|
-
init graphics
|
|
16
|
-
|
|
17
|
-
create Window title `Room By Room` size 600 1024
|
|
18
|
-
|
|
19
|
-
create MainPanel in Window
|
|
20
|
-
! set the layout of Window to MainPanel
|
|
21
|
-
show Window
|
|
22
|
-
|
|
23
|
-
start graphics
|
|
24
|
-
stop
|