easycoder 250811.1__py2.py3-none-any.whl → 250812.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__ = "250811.1"
14
+ __version__ = "250812.1"
easycoder/ec_keyboard.py CHANGED
@@ -20,29 +20,43 @@ class Keyboard(Handler):
20
20
  iconClicked = Signal()
21
21
 
22
22
  class Border(QWidget):
23
- iconClicked = Signal()
23
+ tickClicked = Signal()
24
+ closeClicked = Signal()
24
25
 
25
26
  def __init__(self):
26
27
  super().__init__()
27
- self.setFixedHeight(25)
28
+ self.size = 40
29
+ self.setFixedHeight(self.size)
28
30
  self._drag_active = False
29
31
  self._drag_start_pos = None
30
32
 
31
33
  def paintEvent(self, event):
32
34
  painter = QPainter(self)
33
35
  painter.setRenderHint(QPainter.Antialiasing)
36
+ # Draw the tick icon
37
+ self.tick = QPixmap(f'{os.path.dirname(os.path.abspath(__file__))}/tick.png').scaled(self.size, self.size, Qt.KeepAspectRatio, Qt.SmoothTransformation)
38
+ x = 0
39
+ y = 0
40
+ painter.drawPixmap(x, y, self.tick)
34
41
  # Draw the close icon
35
- self.pixmap = QPixmap(f'{os.path.dirname(os.path.abspath(__file__))}/close.png').scaled(25, 25, Qt.KeepAspectRatio, Qt.SmoothTransformation)
36
- x = self.width() - self.pixmap.width()
42
+ self.close = QPixmap(f'{os.path.dirname(os.path.abspath(__file__))}/close.png').scaled(self.size, self.size, Qt.KeepAspectRatio, Qt.SmoothTransformation)
43
+ x = self.width() - self.close.width()
37
44
  y = 0
38
- painter.drawPixmap(x, y, self.pixmap)
45
+ painter.drawPixmap(x, y, self.close)
39
46
 
40
47
  def mousePressEvent(self, event):
41
- x = self.width() - self.pixmap.width()
48
+ # Tick icon
49
+ x = 0
50
+ y = 0
51
+ tickRect = self.tick.rect().translated(x, y)
52
+ # Close icon
53
+ x = self.width() - self.close.width()
42
54
  y = 0
43
- iconRect = self.pixmap.rect().translated(x, y)
44
- if iconRect.contains(event.pos()):
45
- self.iconClicked.emit()
55
+ closeRect = self.close.rect().translated(x, y)
56
+ if tickRect.contains(event.pos()):
57
+ self.tickClicked.emit()
58
+ if closeRect.contains(event.pos()):
59
+ self.closeClicked.emit()
46
60
  elif QRect(0, 0, self.width(), self.height()).contains(event.pos()):
47
61
  if hasattr(self.window().windowHandle(), 'startSystemMove'):
48
62
  self.window().windowHandle().startSystemMove()
@@ -68,7 +82,6 @@ class Keyboard(Handler):
68
82
  super().__init__(program.compiler)
69
83
 
70
84
  self.program = program
71
- self.keyboardType = keyboardType
72
85
  self.receivers = receivers
73
86
 
74
87
  dialog = QDialog(caller)
@@ -91,7 +104,8 @@ class Keyboard(Handler):
91
104
  layout = QVBoxLayout(dialog)
92
105
 
93
106
  border = self.Border()
94
- border.iconClicked.connect(self.reject)
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:
@@ -471,5 +484,5 @@ class VirtualKeyboard(QStackedWidget):
471
484
 
472
485
  def onClickEnter(self,keycode):
473
486
  # print("Enter pressed")
474
- if self.keyboardType == 'multiline': self.receiver.addCharacter('\n')
487
+ if self.receiver.field.multiline: self.receiver.addCharacter('\n')
475
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
easycoder/tick.png ADDED
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: easycoder
3
- Version: 250811.1
3
+ Version: 250812.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>
@@ -1,17 +1,18 @@
1
- easycoder/__init__.py,sha256=aCU4apZ-PQGhEwgYYiXEZoZmF1i_77keKcH0phtQlBY,314
1
+ easycoder/__init__.py,sha256=ZZ_WGzs6YFYlP3wEIbe3KYrLlYYwOV5uBinon1YZplc,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=dBolE-rap3YdfudGA70ExAbaJA5JuxTTC9_ycqQaAYE,20214
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=xbNwjkh3SpOB9HzpuvXsMXVk6Ndqj9C7dWbkwrXjXKg,50442
11
11
  easycoder/ec_timestamp.py,sha256=myQnnF-mT31_1dpQKv2VEAu4BCcbypvMdzq7_DUi1xc,277
12
12
  easycoder/ec_value.py,sha256=zgDJTJhIg3yOvmnnKIfccIizmIhGbtvL_ghLTL1T5fg,2516
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,,
13
+ easycoder/tick.png,sha256=OedASXJJTYvnza4J6Kv5m5lz6DrBfy667zX_WGgtbmM,9127
14
+ easycoder-250812.1.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
15
+ easycoder-250812.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
16
+ easycoder-250812.1.dist-info/WHEEL,sha256=Dyt6SBfaasWElUrURkknVFAZDHSTwxg3PaTza7RSbkY,100
17
+ easycoder-250812.1.dist-info/METADATA,sha256=OlyCCYFEXdw0uywlzhHjOvarrNl_Xi9N9EYASENteWY,6897
18
+ easycoder-250812.1.dist-info/RECORD,,