easycoder 250517.1__py2.py3-none-any.whl → 250518.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
@@ -9,4 +9,4 @@ from .ec_program import *
9
9
  from .ec_timestamp import *
10
10
  from .ec_value import *
11
11
 
12
- __version__ = "250517.1"
12
+ __version__ = "250518.1"
easycoder/ec_pyside.py CHANGED
@@ -37,11 +37,6 @@ from PySide6.QtWidgets import (
37
37
 
38
38
  class Graphics(Handler):
39
39
 
40
- class MainWindow(QMainWindow):
41
-
42
- def __init__(self):
43
- super().__init__()
44
-
45
40
  def __init__(self, compiler):
46
41
  Handler.__init__(self, compiler)
47
42
 
@@ -375,24 +370,17 @@ class Graphics(Handler):
375
370
  return False
376
371
 
377
372
  def r_createWindow(self, command, record):
378
- window = self.MainWindow()
373
+ window = QMainWindow()
379
374
  window.setWindowTitle(self.getRuntimeValue(command['title']))
380
375
  w = self.getRuntimeValue(command['w'])
381
376
  h = self.getRuntimeValue(command['h'])
382
377
  x = command['x']
383
378
  y = command['y']
384
- if x == None: x = (self.screenWidth - w) / 2
379
+ if x == None: x = (self.program.screenWidth - w) / 2
385
380
  else: x = self.getRuntimeValue(x)
386
- if y == None: y = (self.screenHeight - h) / 2
381
+ if y == None: y = (self.program.screenHeight - h) / 2
387
382
  else: y = self.getRuntimeValue(x)
388
383
  window.setGeometry(x, y, w, h)
389
- # content = self.getVariable(command['layout'])['widget']
390
- # if isinstance(content, QWidget):
391
- # container = content
392
- # else:
393
- # container = QWidget()
394
- # container.setLayout(content)
395
- # window.setCentralWidget(container)
396
384
  record['window'] = window
397
385
  return self.nextPC()
398
386
 
@@ -549,9 +537,9 @@ class Graphics(Handler):
549
537
  def r_init(self, command):
550
538
  self.app = QApplication(sys.argv)
551
539
  screen = QApplication.screens()[0].size().toTuple()
552
- self.screenWidth = screen[0]
553
- self.screenHeight = screen[1]
554
- print(f'Screen: {self.screenWidth}x{self.screenHeight}')
540
+ self.program.screenWidth = screen[0]
541
+ self.program.screenHeight = screen[1]
542
+ print(f'Screen: {self.program.screenWidth}x{self.program.screenHeight}')
555
543
  return self.nextPC()
556
544
 
557
545
  # Declare a label variable
@@ -1,12 +1,11 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.3
2
2
  Name: easycoder
3
- Version: 250517.1
3
+ Version: 250518.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
10
9
  Requires-Dist: pytz
11
10
  Requires-Dist: requests
12
11
  Requires-Dist: pyside6
@@ -1,5 +1,5 @@
1
1
  easycoder/README.md,sha256=BVXmYphcTJ6q6RN_9L6HtQukgCnOjSLVIsTM3lk-9aM,587
2
- easycoder/__init__.py,sha256=tJvoCPTocwkmIxrMHQJ8tg8nxQ2RZgQbEqjOUBi0HHA,262
2
+ easycoder/__init__.py,sha256=8yrJdKMAo1fcUBele7RuG120U6R5ChqSYPzPPZ7UnT0,262
3
3
  easycoder/ec_classes.py,sha256=L6-6yWHDHw8yF9TGL4WWc4p1aUyXzYz6Gom7jJ43h8o,1823
4
4
  easycoder/ec_compiler.py,sha256=vNOAKIK2pX_cW4mcxwCe0OR16iqeZqvZQ6JCgQ5MqtU,5062
5
5
  easycoder/ec_condition.py,sha256=YXvSBQKEzKGCcgUGo3Qp8iHolXmm2BpEm0NimSDszIM,785
@@ -8,11 +8,11 @@ easycoder/ec_graphics.py,sha256=WXxKMB4GJSmxvk-FVbOTyufiUx4TYIzyDoB1PCAO3JY,1606
8
8
  easycoder/ec_gutils.py,sha256=yqu4RRQ6VdRkC5B2ADBYsXzgNu76dLnekd9aUjdEgPw,6399
9
9
  easycoder/ec_handler.py,sha256=zPDZ_hqdgNnkCd8B5HmSLkqsGgf4aDmqcUBOPHgo47U,2305
10
10
  easycoder/ec_program.py,sha256=d_CchiglkCdAgX2CSIQ_WTWcDEvFWCQmRKdoqLCaooU,10087
11
- easycoder/ec_pyside.py,sha256=NP-nXq-ois3wp4pDMaVSxB7FsxOe4ezZ7TqkKb0KxAM,38068
11
+ easycoder/ec_pyside.py,sha256=9A2F3giJyvbBb8Xj4Zd08kvkmCdmBz1g5eoasURadAQ,37733
12
12
  easycoder/ec_timestamp.py,sha256=myQnnF-mT31_1dpQKv2VEAu4BCcbypvMdzq7_DUi1xc,277
13
13
  easycoder/ec_value.py,sha256=zgDJTJhIg3yOvmnnKIfccIizmIhGbtvL_ghLTL1T5fg,2516
14
- easycoder-250517.1.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
15
- easycoder-250517.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
16
- easycoder-250517.1.dist-info/WHEEL,sha256=Dyt6SBfaasWElUrURkknVFAZDHSTwxg3PaTza7RSbkY,100
17
- easycoder-250517.1.dist-info/METADATA,sha256=sugEBalmSDH5JFyoRtXyUCV9bAnXxt-g1LPCPhbetEM,6851
18
- easycoder-250517.1.dist-info/RECORD,,
14
+ easycoder-250518.1.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
15
+ easycoder-250518.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
16
+ easycoder-250518.1.dist-info/WHEEL,sha256=ssQ84EZ5gH1pCOujd3iW7HClo_O_aDaClUbX4B8bjKY,100
17
+ easycoder-250518.1.dist-info/METADATA,sha256=vHvoEYT1IDX4_-oDsSR7UB6ffNwuBuuiDxQ-xUkbNK4,6829
18
+ easycoder-250518.1.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