easycoder 250810.3__tar.gz → 250811.2__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-250810.3 → easycoder-250811.2}/PKG-INFO +1 -1
- {easycoder-250810.3 → easycoder-250811.2}/easycoder/__init__.py +1 -1
- {easycoder-250810.3 → easycoder-250811.2}/easycoder/ec_keyboard.py +26 -13
- {easycoder-250810.3 → easycoder-250811.2}/easycoder/ec_pyside.py +32 -8
- easycoder-250811.2/easycoder/tick.png +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/.gitignore +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/LICENSE +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/README.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/backdrop.jpg +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/README.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/README.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/conditions/boolean.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/conditions/empty.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/conditions/ends.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/conditions/even.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/conditions/exists.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/conditions/greater.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/conditions/hasProperty.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/conditions/includes.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/conditions/is.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/conditions/less.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/conditions/list.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/conditions/none.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/conditions/not.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/conditions/numeric.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/conditions/object.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/conditions/odd.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/conditions/starts.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/conditions/string.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/add.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/append.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/assert.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/begin.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/clear.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/close.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/create.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/debug.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/decrement.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/delete.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/divide.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/exit.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/file.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/fork.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/get.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/go.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/gosub.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/if.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/import.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/increment.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/index.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/init.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/input.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/load.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/lock.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/log.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/module.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/multiply.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/negate.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/on.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/open.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/pop.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/post.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/print.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/push.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/put.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/read.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/release.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/replace.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/return.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/run.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/save.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/script.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/send.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/set.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/shuffle.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/split.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/stack.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/stop.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/system.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/take.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/toggle.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/truncate.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/unlock.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/use.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/variable.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/wait.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/while.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/keywords/write.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/arg.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/args.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/cos.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/datime.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/decode.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/element.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/elements.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/empty.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/encode.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/error.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/files.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/float.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/from.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/hash.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/index.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/integer.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/json.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/keys.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/left.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/length.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/lowercase.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/memory.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/modification.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/modulo.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/newline.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/now.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/position.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/property.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/random.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/right.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/sin.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/stringify.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/tab.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/tan.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/timestamp.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/today.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/trim.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/type.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/uppercase.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/value.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/core/values/weekday.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/graphics/README.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/graphics/keywords/attach.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/graphics/keywords/close.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/graphics/keywords/create.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/graphics/keywords/ellipse.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/graphics/keywords/image.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/graphics/keywords/move.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/graphics/keywords/on.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/graphics/keywords/rectangle.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/graphics/keywords/render.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/graphics/keywords/run.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/graphics/keywords/set.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/graphics/keywords/text.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/graphics/values/attribute.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/doc/graphics/values/window.md +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/easycoder/close.png +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/easycoder/ec_classes.py +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/easycoder/ec_compiler.py +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/easycoder/ec_condition.py +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/easycoder/ec_core.py +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/easycoder/ec_handler.py +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/easycoder/ec_program.py +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/easycoder/ec_timestamp.py +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/easycoder/ec_value.py +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/images/Semoigo Dawn.jpg +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/json/graphics-demo.json +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/plugins/ec_keyboard.py +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/plugins/ec_p100.py +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/plugins/ec_pyside6.py +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/plugins/points.py +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/plugins/sql.py +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/pyproject.toml +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/scripts/benchmark.ecs +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/scripts/config.ecg +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/scripts/ec_keyboard.py +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/scripts/fizzbuzz.ecs +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/scripts/hello.ecs +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/scripts/points.ecs +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/scripts/test.ecs +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/scripts/tests.ecs +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/test.py +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/testrc.py +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/testsql.py +0 -0
- {easycoder-250810.3 → easycoder-250811.2}/testui.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: easycoder
|
|
3
|
-
Version:
|
|
3
|
+
Version: 250811.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>
|
|
@@ -20,29 +20,42 @@ class Keyboard(Handler):
|
|
|
20
20
|
iconClicked = Signal()
|
|
21
21
|
|
|
22
22
|
class Border(QWidget):
|
|
23
|
-
|
|
23
|
+
tickClicked = Signal()
|
|
24
|
+
closeClicked = Signal()
|
|
24
25
|
|
|
25
26
|
def __init__(self):
|
|
26
27
|
super().__init__()
|
|
27
|
-
self.setFixedHeight(
|
|
28
|
+
self.setFixedHeight(30)
|
|
28
29
|
self._drag_active = False
|
|
29
30
|
self._drag_start_pos = None
|
|
30
31
|
|
|
31
32
|
def paintEvent(self, event):
|
|
32
33
|
painter = QPainter(self)
|
|
33
34
|
painter.setRenderHint(QPainter.Antialiasing)
|
|
35
|
+
# Draw the tick icon
|
|
36
|
+
self.tick = QPixmap(f'{os.path.dirname(os.path.abspath(__file__))}/tick.png').scaled(30, 30, Qt.KeepAspectRatio, Qt.SmoothTransformation)
|
|
37
|
+
x = 0
|
|
38
|
+
y = 0
|
|
39
|
+
painter.drawPixmap(x, y, self.tick)
|
|
34
40
|
# Draw the close icon
|
|
35
|
-
self.
|
|
36
|
-
x = self.width() - self.
|
|
41
|
+
self.close = QPixmap(f'{os.path.dirname(os.path.abspath(__file__))}/close.png').scaled(30, 30, Qt.KeepAspectRatio, Qt.SmoothTransformation)
|
|
42
|
+
x = self.width() - self.close.width()
|
|
37
43
|
y = 0
|
|
38
|
-
painter.drawPixmap(x, y, self.
|
|
44
|
+
painter.drawPixmap(x, y, self.close)
|
|
39
45
|
|
|
40
46
|
def mousePressEvent(self, event):
|
|
41
|
-
|
|
47
|
+
# Tick icon
|
|
48
|
+
x = 0
|
|
49
|
+
y = 0
|
|
50
|
+
tickRect = self.tick.rect().translated(x, y)
|
|
51
|
+
# Close icon
|
|
52
|
+
x = self.width() - self.close.width()
|
|
42
53
|
y = 0
|
|
43
|
-
|
|
44
|
-
if
|
|
45
|
-
self.
|
|
54
|
+
closeRect = self.close.rect().translated(x, y)
|
|
55
|
+
if tickRect.contains(event.pos()):
|
|
56
|
+
self.tickClicked.emit()
|
|
57
|
+
if closeRect.contains(event.pos()):
|
|
58
|
+
self.closeClicked.emit()
|
|
46
59
|
elif QRect(0, 0, self.width(), self.height()).contains(event.pos()):
|
|
47
60
|
if hasattr(self.window().windowHandle(), 'startSystemMove'):
|
|
48
61
|
self.window().windowHandle().startSystemMove()
|
|
@@ -91,7 +104,8 @@ class Keyboard(Handler):
|
|
|
91
104
|
layout = QVBoxLayout(dialog)
|
|
92
105
|
|
|
93
106
|
border = self.Border()
|
|
94
|
-
border.
|
|
107
|
+
border.tickClicked.connect(self.dialog.accept)
|
|
108
|
+
border.closeClicked.connect(self.reject)
|
|
95
109
|
layout.addWidget(border)
|
|
96
110
|
layout.addLayout(receiverLayout)
|
|
97
111
|
self.vk = VirtualKeyboard(keyboardType, 42, receivers[0], dialog.accept)
|
|
@@ -124,7 +138,6 @@ class Keyboard(Handler):
|
|
|
124
138
|
return
|
|
125
139
|
|
|
126
140
|
def reject(self):
|
|
127
|
-
selectedReceiver = self.vk.getReceiver()
|
|
128
141
|
receivers = self.receivers
|
|
129
142
|
index = 0
|
|
130
143
|
for receiver in receivers:
|
|
@@ -144,9 +157,9 @@ class TextReceiver():
|
|
|
144
157
|
raise ValueError("Only single characters are allowed.")
|
|
145
158
|
|
|
146
159
|
def backspace(self):
|
|
147
|
-
current_text = self.
|
|
160
|
+
current_text = self.getContent()
|
|
148
161
|
if current_text:
|
|
149
|
-
self.
|
|
162
|
+
self.setContent(current_text[:-1])
|
|
150
163
|
|
|
151
164
|
def setContent(self, text):
|
|
152
165
|
if isinstance(self.field, QLineEdit):
|
|
@@ -187,14 +187,21 @@ class Graphics(Handler):
|
|
|
187
187
|
if 'value' in command:
|
|
188
188
|
value = self.getRuntimeValue(command['value'])
|
|
189
189
|
widget = self.getVariable(command['widget'])
|
|
190
|
-
if widget['keyword']
|
|
190
|
+
if widget['keyword'] == 'listbox':
|
|
191
191
|
widget['widget'].addItem(value)
|
|
192
|
+
elif widget['keyword'] == 'combobox':
|
|
193
|
+
if isinstance(value, list): widget['widget'].addItems(value)
|
|
194
|
+
else: widget['widget'].addItem(value)
|
|
192
195
|
elif 'row' in command and 'col' in command:
|
|
193
196
|
layout = self.getVariable(command['layout'])['widget']
|
|
194
|
-
|
|
197
|
+
widgetVar = self.getVariable(command['widget'])
|
|
198
|
+
widget = widgetVar['widget']
|
|
195
199
|
row = self.getRuntimeValue(command['row'])
|
|
196
200
|
col = self.getRuntimeValue(command['col'])
|
|
197
|
-
|
|
201
|
+
if widgetVar['keyword'] == 'layout':
|
|
202
|
+
layout.addLayout(widget, row, col)
|
|
203
|
+
else:
|
|
204
|
+
layout.addWidget(widget, row, col)
|
|
198
205
|
else:
|
|
199
206
|
layoutRecord = self.getVariable(command['layout'])
|
|
200
207
|
widget = command['widget']
|
|
@@ -563,6 +570,22 @@ class Graphics(Handler):
|
|
|
563
570
|
|
|
564
571
|
def r_createCheckBox(self, command, record):
|
|
565
572
|
checkbox = QCheckBox(self.getRuntimeValue(command['text']))
|
|
573
|
+
checkbox.setStyleSheet("""
|
|
574
|
+
QCheckBox::indicator {
|
|
575
|
+
border: 1px solid black;
|
|
576
|
+
border-radius: 3px;
|
|
577
|
+
background: white;
|
|
578
|
+
width: 16px;
|
|
579
|
+
height: 16px;
|
|
580
|
+
}
|
|
581
|
+
QCheckBox::indicator:checked {
|
|
582
|
+
background: #0078d7;
|
|
583
|
+
}
|
|
584
|
+
QCheckBox {
|
|
585
|
+
border: none;
|
|
586
|
+
background: transparent;
|
|
587
|
+
}
|
|
588
|
+
""")
|
|
566
589
|
checkbox.setSizePolicy(QSizePolicy.Fixed, QSizePolicy.Preferred)
|
|
567
590
|
record['widget'] = checkbox
|
|
568
591
|
return self.nextPC()
|
|
@@ -910,7 +933,7 @@ class Graphics(Handler):
|
|
|
910
933
|
# set [the] spacing of {layout} to {value}
|
|
911
934
|
# set [the] text [of] {label}/{button}/{lineinput}/{multiline} [to] {text}
|
|
912
935
|
# set [the] color [of] {label}/{button}/{lineinput}/{multiline} [to] {color}
|
|
913
|
-
# set [the] state [of] {checkbox} [to] {
|
|
936
|
+
# set [the] state [of] {checkbox} [to] {state}
|
|
914
937
|
# set {listbox} to {list}
|
|
915
938
|
# set blocked true/false
|
|
916
939
|
def k_set(self, command):
|
|
@@ -966,7 +989,7 @@ class Graphics(Handler):
|
|
|
966
989
|
if record['keyword'] == 'checkbox':
|
|
967
990
|
command['name'] = record['name']
|
|
968
991
|
self.skip('to')
|
|
969
|
-
command['value'] = self.
|
|
992
|
+
command['value'] = self.nextToken()
|
|
970
993
|
self.add(command)
|
|
971
994
|
return True
|
|
972
995
|
elif token == 'alignment':
|
|
@@ -1057,9 +1080,10 @@ class Graphics(Handler):
|
|
|
1057
1080
|
if record['keyword'] == 'pushbutton':
|
|
1058
1081
|
widget.setAccessibleName(text)
|
|
1059
1082
|
elif what == 'state':
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1083
|
+
record = self.getVariable(command['name'])
|
|
1084
|
+
if record['keyword'] == 'checkbox':
|
|
1085
|
+
state = True if command['value'] == 'checked' else False
|
|
1086
|
+
record['widget'].setChecked(state)
|
|
1063
1087
|
elif what == 'alignment':
|
|
1064
1088
|
widget = self.getVariable(command['name'])['widget']
|
|
1065
1089
|
flags = command['value']
|
|
Binary file
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|