easycoder 250811.2__py2.py3-none-any.whl → 250812.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 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__ = "250811.2"
14
+ __version__ = "250812.2"
easycoder/ec_keyboard.py CHANGED
@@ -25,7 +25,8 @@ class Keyboard(Handler):
25
25
 
26
26
  def __init__(self):
27
27
  super().__init__()
28
- self.setFixedHeight(30)
28
+ self.size = 40
29
+ self.setFixedHeight(self.size)
29
30
  self._drag_active = False
30
31
  self._drag_start_pos = None
31
32
 
@@ -33,12 +34,12 @@ class Keyboard(Handler):
33
34
  painter = QPainter(self)
34
35
  painter.setRenderHint(QPainter.Antialiasing)
35
36
  # 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
+ self.tick = QPixmap(f'{os.path.dirname(os.path.abspath(__file__))}/tick.png').scaled(self.size, self.size, Qt.KeepAspectRatio, Qt.SmoothTransformation)
37
38
  x = 0
38
39
  y = 0
39
40
  painter.drawPixmap(x, y, self.tick)
40
41
  # Draw the close icon
41
- self.close = QPixmap(f'{os.path.dirname(os.path.abspath(__file__))}/close.png').scaled(30, 30, Qt.KeepAspectRatio, Qt.SmoothTransformation)
42
+ self.close = QPixmap(f'{os.path.dirname(os.path.abspath(__file__))}/close.png').scaled(self.size, self.size, Qt.KeepAspectRatio, Qt.SmoothTransformation)
42
43
  x = self.width() - self.close.width()
43
44
  y = 0
44
45
  painter.drawPixmap(x, y, self.close)
@@ -81,7 +82,6 @@ class Keyboard(Handler):
81
82
  super().__init__(program.compiler)
82
83
 
83
84
  self.program = program
84
- self.keyboardType = keyboardType
85
85
  self.receivers = receivers
86
86
 
87
87
  dialog = QDialog(caller)
@@ -484,5 +484,5 @@ class VirtualKeyboard(QStackedWidget):
484
484
 
485
485
  def onClickEnter(self,keycode):
486
486
  # print("Enter pressed")
487
- if self.keyboardType == 'multiline': self.receiver.addCharacter('\n')
487
+ if self.receiver.field.multiline: self.receiver.addCharacter('\n')
488
488
  else: self.onFinished()
easycoder/ec_pyside.py CHANGED
@@ -84,6 +84,7 @@ class Graphics(Handler):
84
84
 
85
85
  def __init__(self):
86
86
  super().__init__()
87
+ self.multiline = False
87
88
 
88
89
  def setContainer(self, container):
89
90
  self.container = container
@@ -98,6 +99,7 @@ class Graphics(Handler):
98
99
 
99
100
  def __init__(self):
100
101
  super().__init__()
102
+ self.multiline = True
101
103
 
102
104
  def setContainer(self, container):
103
105
  self.container = container
@@ -643,8 +645,8 @@ class Graphics(Handler):
643
645
  dialog.textEdit.setText(dialog.value)
644
646
  mainLayout.addWidget(dialog.textEdit)
645
647
  buttonBox = QDialogButtonBox(QDialogButtonBox.Ok | QDialogButtonBox.Cancel)
646
- buttonBox.accepted.connect(self.accept)
647
- buttonBox.rejected.connect(self.reject)
648
+ buttonBox.accepted.connect(dialog.accept)
649
+ buttonBox.rejected.connect(dialog.reject)
648
650
  mainLayout.addWidget(buttonBox, alignment=Qt.AlignHCenter)
649
651
  record['dialog'] = dialog
650
652
  return self.nextPC()
@@ -1,11 +1,12 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: easycoder
3
- Version: 250811.2
3
+ Version: 250812.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>
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,18 +1,18 @@
1
- easycoder/__init__.py,sha256=Us6NbSCyLxMyq_Xpbx8Exz1eN6V2tfMNRtDnlccsxrk,314
1
+ easycoder/__init__.py,sha256=CEnQfLrh278Ro1z-btwsxheiTvyjlBt5v9qKbcPyP-c,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=y5m_HgsPhzbnLDuTstxIQovLInVrpKQvrcmoULetrcQ,20747
8
+ easycoder/ec_keyboard.py,sha256=rXddjgx7N1wQrBMypZ4o0B79atdR-jHZq0_c5ZaMZcU,20765
9
9
  easycoder/ec_program.py,sha256=7h2QKGunsiu5l2OKn-sw-Dd70kZJrb4b2idHubeSXDs,9989
10
- easycoder/ec_pyside.py,sha256=0G8fPmBXDf2NVTDEyX564_86R-_2XhNuxHvFRgQJaN4,50373
10
+ easycoder/ec_pyside.py,sha256=9_Bb4b_aYY-7BQ721arSpeSB6Jgx1a6unZLIUFCpRqs,50446
11
11
  easycoder/ec_timestamp.py,sha256=myQnnF-mT31_1dpQKv2VEAu4BCcbypvMdzq7_DUi1xc,277
12
12
  easycoder/ec_value.py,sha256=zgDJTJhIg3yOvmnnKIfccIizmIhGbtvL_ghLTL1T5fg,2516
13
13
  easycoder/tick.png,sha256=OedASXJJTYvnza4J6Kv5m5lz6DrBfy667zX_WGgtbmM,9127
14
- easycoder-250811.2.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
15
- easycoder-250811.2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
16
- easycoder-250811.2.dist-info/WHEEL,sha256=ssQ84EZ5gH1pCOujd3iW7HClo_O_aDaClUbX4B8bjKY,100
17
- easycoder-250811.2.dist-info/METADATA,sha256=dERNvpPzi7IGdAG4nXWiRA8rQNHthem6HWx3RyyV8XY,6875
18
- easycoder-250811.2.dist-info/RECORD,,
14
+ easycoder-250812.2.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
15
+ easycoder-250812.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
16
+ easycoder-250812.2.dist-info/WHEEL,sha256=Dyt6SBfaasWElUrURkknVFAZDHSTwxg3PaTza7RSbkY,100
17
+ easycoder-250812.2.dist-info/METADATA,sha256=VFT0-DwnxDsZ37YSh-DGwgyYEx6qmovbKfG0uOHsXyc,6897
18
+ easycoder-250812.2.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