easycoder 250811.1__py2.py3-none-any.whl → 250811.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.1"
14
+ __version__ = "250811.2"
easycoder/ec_keyboard.py CHANGED
@@ -20,29 +20,42 @@ 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.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.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()
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.pixmap)
44
+ painter.drawPixmap(x, y, self.close)
39
45
 
40
46
  def mousePressEvent(self, event):
41
- x = self.width() - self.pixmap.width()
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
- iconRect = self.pixmap.rect().translated(x, y)
44
- if iconRect.contains(event.pos()):
45
- self.iconClicked.emit()
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.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:
easycoder/tick.png ADDED
Binary file
@@ -1,12 +1,11 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.3
2
2
  Name: easycoder
3
- Version: 250811.1
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>
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: psutil
@@ -1,17 +1,18 @@
1
- easycoder/__init__.py,sha256=aCU4apZ-PQGhEwgYYiXEZoZmF1i_77keKcH0phtQlBY,314
1
+ easycoder/__init__.py,sha256=Us6NbSCyLxMyq_Xpbx8Exz1eN6V2tfMNRtDnlccsxrk,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=y5m_HgsPhzbnLDuTstxIQovLInVrpKQvrcmoULetrcQ,20747
9
9
  easycoder/ec_program.py,sha256=7h2QKGunsiu5l2OKn-sw-Dd70kZJrb4b2idHubeSXDs,9989
10
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-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-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,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: flit 3.12.0
2
+ Generator: flit 3.10.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py2-none-any
5
5
  Tag: py3-none-any