easycoder 250721.2__py2.py3-none-any.whl → 250722.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
@@ -8,5 +8,7 @@ from .ec_handler import *
8
8
  from .ec_program import *
9
9
  from .ec_timestamp import *
10
10
  from .ec_value import *
11
+ from .ec_pyside import *
12
+ from .keyboard import *
11
13
 
12
- __version__ = "250721.2"
14
+ __version__ = "250722.1"
easycoder/ec_core.py CHANGED
@@ -1798,13 +1798,14 @@ class Core(Handler):
1798
1798
 
1799
1799
  # Use a plugin module
1800
1800
  def k_use(self, command):
1801
- if self.nextIs('graphics'):
1802
- print('Loading graphics module')
1803
- from .ec_pyside import Graphics
1804
- self.program.graphics = Graphics
1805
- self.program.classes.append(Graphics)
1806
- self.program.processClasses()
1807
- return True
1801
+ if self.nextIs('plugin'):
1802
+ if self.nextIs('graphics'):
1803
+ print('Loading graphics module')
1804
+ from .ec_pyside import Graphics
1805
+ self.program.graphics = Graphics
1806
+ self.program.useClass(Graphics)
1807
+ return True
1808
+ return False
1808
1809
 
1809
1810
  # Declare a general-purpose variable
1810
1811
  def k_variable(self, command):
easycoder/ec_program.py CHANGED
@@ -22,7 +22,6 @@ class Program:
22
22
  if len(argv) == 0:
23
23
  print('No script supplied')
24
24
  exit()
25
- self.classes=[Core]
26
25
  scriptName = argv
27
26
 
28
27
  f = open(scriptName, 'r')
@@ -44,7 +43,7 @@ class Program:
44
43
  self.value = self.compiler.value
45
44
  self.condition = self.compiler.condition
46
45
  self.graphics = None
47
- self.processClasses()
46
+ self.useClass(Core)
48
47
  self.externalControl = False
49
48
  self.ticker = 0
50
49
  self.running = True
@@ -101,16 +100,13 @@ class Program:
101
100
  module = module.replace('/','.').replace('.py','')
102
101
  module = importlib.import_module(module)
103
102
  plugin = getattr(module, args[1])
104
- self.classes.append(plugin)
105
- self.processClasses()
106
-
107
- # Process the class list to get the domains
108
- def processClasses(self):
109
- self.domains=[]
110
- for clazz in self.classes:
111
- handler = clazz(self.compiler)
112
- self.domains.append(handler)
113
- self.domainIndex[handler.getName()] = handler
103
+ self.useClass(plugin)
104
+
105
+ # Use a specified class
106
+ def useClass(self, clazz):
107
+ handler = clazz(self.compiler)
108
+ self.domains.append(handler)
109
+ self.domainIndex[handler.getName()] = handler
114
110
 
115
111
  # Get the domain list
116
112
  def getDomains(self):
easycoder/ec_pyside.py CHANGED
@@ -41,6 +41,7 @@ class Graphics(Handler):
41
41
  Handler.__init__(self, compiler)
42
42
  self.blocked = False
43
43
  self.runOnTick = 0
44
+ self.vkb = False
44
45
 
45
46
  def getName(self):
46
47
  return 'graphics'
@@ -970,6 +971,7 @@ class Graphics(Handler):
970
971
  if dialog.dialogType == 'confirm':
971
972
  record['result'] = True if dialog.exec() == QDialog.Accepted else False
972
973
  elif dialog.dialogType == 'lineedit':
974
+ if self.vkb: print('Show virtual keyboard')
973
975
  if dialog.exec() == QDialog.Accepted:
974
976
  record['result'] = dialog.lineEdit.text()
975
977
  else: record['result'] = dialog.value
@@ -999,6 +1001,15 @@ class Graphics(Handler):
999
1001
  self.app.lastWindowClosed.connect(on_last_window_closed)
1000
1002
  self.app.exec()
1001
1003
 
1004
+ # use virtual keyboard
1005
+ def k_use(self, command):
1006
+ if self.nextIs('virtual'):
1007
+ if self.nextIs('keyboard'):
1008
+ print('Use the virtual keyboard')
1009
+ self.vkb = True
1010
+ return True
1011
+ return False
1012
+
1002
1013
  # Declare a window variable
1003
1014
  def k_window(self, command):
1004
1015
  return self.compileVariable(command)
@@ -1,12 +1,11 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.3
2
2
  Name: easycoder
3
- Version: 250721.2
3
+ Version: 250722.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: psutil
@@ -0,0 +1,16 @@
1
+ easycoder/README.md,sha256=BVXmYphcTJ6q6RN_9L6HtQukgCnOjSLVIsTM3lk-9aM,587
2
+ easycoder/__init__.py,sha256=26eSBDLcXyn0o4H23LtxJkXW-GYVxwRSsD3MnI4W6Wo,311
3
+ easycoder/ec_classes.py,sha256=PWPaJuTfaWD4-tgT-2WWOgeFV_jXxlxyKCxvXyylCUU,1824
4
+ easycoder/ec_compiler.py,sha256=9byLqJZgMHAyFFyD8eGhY77oTsY1GY1aVcVrU4JAbd4,5287
5
+ easycoder/ec_condition.py,sha256=YXvSBQKEzKGCcgUGo3Qp8iHolXmm2BpEm0NimSDszIM,785
6
+ easycoder/ec_core.py,sha256=6fBZYfX93563xqkpORovNpYdOkdQ3GZyn95WPm61WKg,99606
7
+ easycoder/ec_handler.py,sha256=ohf3xUuWw_Qb5SZnulGtDhvCb11kvWtYfgbQTiOXpIY,2261
8
+ easycoder/ec_program.py,sha256=SHg8NV9g-DclSWz8pQzgAiElreoYrI1FR1NrZS4_hIA,9968
9
+ easycoder/ec_pyside.py,sha256=DkTw8SIEutDti7crhWQeMd-7ybErdR9L-IbQS7UVUbg,42184
10
+ easycoder/ec_timestamp.py,sha256=myQnnF-mT31_1dpQKv2VEAu4BCcbypvMdzq7_DUi1xc,277
11
+ easycoder/ec_value.py,sha256=zgDJTJhIg3yOvmnnKIfccIizmIhGbtvL_ghLTL1T5fg,2516
12
+ easycoder-250722.1.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
13
+ easycoder-250722.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
14
+ easycoder-250722.1.dist-info/WHEEL,sha256=ssQ84EZ5gH1pCOujd3iW7HClo_O_aDaClUbX4B8bjKY,100
15
+ easycoder-250722.1.dist-info/METADATA,sha256=JIzy0aHtQ7YKneAOSX5E6NkDU5v4QJF5N-MN4Opa3oE,6875
16
+ easycoder-250722.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
@@ -1,16 +0,0 @@
1
- easycoder/README.md,sha256=BVXmYphcTJ6q6RN_9L6HtQukgCnOjSLVIsTM3lk-9aM,587
2
- easycoder/__init__.py,sha256=nC_1RtMTogUld4h8ws28dfYGTZpNk52HidBAIKiUDAQ,262
3
- easycoder/ec_classes.py,sha256=PWPaJuTfaWD4-tgT-2WWOgeFV_jXxlxyKCxvXyylCUU,1824
4
- easycoder/ec_compiler.py,sha256=9byLqJZgMHAyFFyD8eGhY77oTsY1GY1aVcVrU4JAbd4,5287
5
- easycoder/ec_condition.py,sha256=YXvSBQKEzKGCcgUGo3Qp8iHolXmm2BpEm0NimSDszIM,785
6
- easycoder/ec_core.py,sha256=he_8KO2lSR9vcj9_2jauBBvwE2QqkeSVDEcagHdVnHU,99575
7
- easycoder/ec_handler.py,sha256=ohf3xUuWw_Qb5SZnulGtDhvCb11kvWtYfgbQTiOXpIY,2261
8
- easycoder/ec_program.py,sha256=FxM9I3Wu1sXBkM5byaKjXyu0MGiILSaa_VeAtuw1g9Q,10091
9
- easycoder/ec_pyside.py,sha256=vBGGKGSXlIARxAUwMXOrdxkWguqMlNnUo2SR9dwCbw8,41831
10
- easycoder/ec_timestamp.py,sha256=myQnnF-mT31_1dpQKv2VEAu4BCcbypvMdzq7_DUi1xc,277
11
- easycoder/ec_value.py,sha256=zgDJTJhIg3yOvmnnKIfccIizmIhGbtvL_ghLTL1T5fg,2516
12
- easycoder-250721.2.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
13
- easycoder-250721.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
14
- easycoder-250721.2.dist-info/WHEEL,sha256=Dyt6SBfaasWElUrURkknVFAZDHSTwxg3PaTza7RSbkY,100
15
- easycoder-250721.2.dist-info/METADATA,sha256=q9GXcpW8MYIK-00-ltZEYIQKXGvyNQsntAV6dLmcbv0,6897
16
- easycoder-250721.2.dist-info/RECORD,,