easycoder 250810.3__py2.py3-none-any.whl → 250811.1__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 CHANGED
@@ -11,4 +11,4 @@ from .ec_pyside import *
11
11
  from .ec_timestamp import *
12
12
  from .ec_value import *
13
13
 
14
- __version__ = "250810.3"
14
+ __version__ = "250811.1"
easycoder/ec_keyboard.py CHANGED
@@ -144,9 +144,9 @@ class TextReceiver():
144
144
  raise ValueError("Only single characters are allowed.")
145
145
 
146
146
  def backspace(self):
147
- current_text = self.field.text()
147
+ current_text = self.getContent()
148
148
  if current_text:
149
- self.field.setText(current_text[:-1])
149
+ self.setContent(current_text[:-1])
150
150
 
151
151
  def setContent(self, text):
152
152
  if isinstance(self.field, QLineEdit):
easycoder/ec_pyside.py CHANGED
@@ -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'] in ['listbox', 'combobox']:
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
- widget = self.getVariable(command['widget'])['widget']
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
- layout.addWidget(widget, row, col)
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] {color}
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.nextValue()
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
- widget = self.getVariable(command['name'])['widget']
1061
- state = self.getRuntimeValue(command['value'])
1062
- widget.setChecked(state)
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']
@@ -1,11 +1,12 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: easycoder
3
- Version: 250810.3
3
+ Version: 250811.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
9
10
  Requires-Dist: pytz
10
11
  Requires-Dist: requests
11
12
  Requires-Dist: psutil
@@ -1,17 +1,17 @@
1
- easycoder/__init__.py,sha256=7SNthjbKvFYHnKTilRMWlc5PTRJTF-hM4ZQDvcvgenA,314
1
+ easycoder/__init__.py,sha256=aCU4apZ-PQGhEwgYYiXEZoZmF1i_77keKcH0phtQlBY,314
2
2
  easycoder/close.png,sha256=3B9ueRNtEu9E4QNmZhdyC4VL6uqKvGmdfeFxIV9aO_Y,9847
3
3
  easycoder/ec_classes.py,sha256=PWPaJuTfaWD4-tgT-2WWOgeFV_jXxlxyKCxvXyylCUU,1824
4
4
  easycoder/ec_compiler.py,sha256=-uuXDbfgFBGXSrr7EneDnnneFOFsU-UuCIpNHsCqY0s,5289
5
5
  easycoder/ec_condition.py,sha256=YXvSBQKEzKGCcgUGo3Qp8iHolXmm2BpEm0NimSDszIM,785
6
6
  easycoder/ec_core.py,sha256=r0bFQV3LXCCh4CP6289h6UvK6gpq4L0BQDrEWkeVo_0,98040
7
7
  easycoder/ec_handler.py,sha256=ohf3xUuWw_Qb5SZnulGtDhvCb11kvWtYfgbQTiOXpIY,2261
8
- easycoder/ec_keyboard.py,sha256=jLFtBWS61OWI8S5WO_cZJPAWrclMpgHSnMoNVbJ_2sQ,20217
8
+ easycoder/ec_keyboard.py,sha256=dBolE-rap3YdfudGA70ExAbaJA5JuxTTC9_ycqQaAYE,20214
9
9
  easycoder/ec_program.py,sha256=7h2QKGunsiu5l2OKn-sw-Dd70kZJrb4b2idHubeSXDs,9989
10
- easycoder/ec_pyside.py,sha256=fMTM-N5GbCHfQxyRhcHk5hE8e-dEd6TagvUToWoeEFE,49513
10
+ easycoder/ec_pyside.py,sha256=0G8fPmBXDf2NVTDEyX564_86R-_2XhNuxHvFRgQJaN4,50373
11
11
  easycoder/ec_timestamp.py,sha256=myQnnF-mT31_1dpQKv2VEAu4BCcbypvMdzq7_DUi1xc,277
12
12
  easycoder/ec_value.py,sha256=zgDJTJhIg3yOvmnnKIfccIizmIhGbtvL_ghLTL1T5fg,2516
13
- easycoder-250810.3.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
14
- easycoder-250810.3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
15
- easycoder-250810.3.dist-info/WHEEL,sha256=ssQ84EZ5gH1pCOujd3iW7HClo_O_aDaClUbX4B8bjKY,100
16
- easycoder-250810.3.dist-info/METADATA,sha256=vVpAZ4IHuxGWN69cdiTa9z7mGquBIGY9mQNt8GOQEYo,6875
17
- easycoder-250810.3.dist-info/RECORD,,
13
+ easycoder-250811.1.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
14
+ easycoder-250811.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
15
+ easycoder-250811.1.dist-info/WHEEL,sha256=Dyt6SBfaasWElUrURkknVFAZDHSTwxg3PaTza7RSbkY,100
16
+ easycoder-250811.1.dist-info/METADATA,sha256=ijX7ga1ObLbTpHhLlo1XW0ZxNVoJ8iBSsV3glbH0xtU,6897
17
+ easycoder-250811.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: flit 3.10.1
2
+ Generator: flit 3.12.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py2-none-any
5
5
  Tag: py3-none-any