easycoder 251104.2__py2.py3-none-any.whl → 260110.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.

Files changed (60) hide show
  1. easycoder/__init__.py +5 -3
  2. easycoder/debugger/__init__.py +5 -0
  3. easycoder/debugger/ec_dbg_value_display copy.py +195 -0
  4. easycoder/debugger/ec_dbg_value_display.py +24 -0
  5. easycoder/debugger/ec_dbg_watch_list copy.py +219 -0
  6. easycoder/debugger/ec_dbg_watchlist.py +293 -0
  7. easycoder/debugger/ec_debug.py +1025 -0
  8. easycoder/ec_border.py +15 -11
  9. easycoder/ec_classes.py +487 -11
  10. easycoder/ec_compiler.py +81 -44
  11. easycoder/ec_condition.py +1 -1
  12. easycoder/ec_core.py +1044 -1090
  13. easycoder/ec_gclasses.py +236 -0
  14. easycoder/ec_graphics.py +1683 -0
  15. easycoder/ec_handler.py +18 -13
  16. easycoder/ec_keyboard.py +50 -50
  17. easycoder/ec_program.py +299 -156
  18. easycoder/ec_psutil.py +48 -0
  19. easycoder/ec_timestamp.py +2 -1
  20. easycoder/ec_value.py +65 -47
  21. easycoder/icons/exit.png +0 -0
  22. easycoder/icons/run.png +0 -0
  23. easycoder/icons/step.png +0 -0
  24. easycoder/icons/stop.png +0 -0
  25. easycoder/pre/README.md +3 -0
  26. easycoder/pre/__init__.py +17 -0
  27. easycoder/pre/debugger/__init__.py +5 -0
  28. easycoder/pre/debugger/ec_dbg_value_display copy.py +195 -0
  29. easycoder/pre/debugger/ec_dbg_value_display.py +24 -0
  30. easycoder/pre/debugger/ec_dbg_watch_list copy.py +219 -0
  31. easycoder/pre/debugger/ec_dbg_watchlist.py +293 -0
  32. easycoder/pre/debugger/ec_debug.py +1014 -0
  33. easycoder/pre/ec_border.py +67 -0
  34. easycoder/pre/ec_classes.py +470 -0
  35. easycoder/pre/ec_compiler.py +291 -0
  36. easycoder/pre/ec_condition.py +27 -0
  37. easycoder/pre/ec_core.py +2772 -0
  38. easycoder/pre/ec_gclasses.py +230 -0
  39. easycoder/{ec_pyside.py → pre/ec_graphics.py} +631 -496
  40. easycoder/pre/ec_handler.py +79 -0
  41. easycoder/pre/ec_keyboard.py +439 -0
  42. easycoder/pre/ec_program.py +557 -0
  43. easycoder/pre/ec_psutil.py +48 -0
  44. easycoder/pre/ec_timestamp.py +11 -0
  45. easycoder/pre/ec_value.py +124 -0
  46. easycoder/pre/icons/close.png +0 -0
  47. easycoder/pre/icons/exit.png +0 -0
  48. easycoder/pre/icons/run.png +0 -0
  49. easycoder/pre/icons/step.png +0 -0
  50. easycoder/pre/icons/stop.png +0 -0
  51. easycoder/pre/icons/tick.png +0 -0
  52. {easycoder-251104.2.dist-info → easycoder-260110.1.dist-info}/METADATA +11 -1
  53. easycoder-260110.1.dist-info/RECORD +58 -0
  54. easycoder/ec_debug.py +0 -464
  55. easycoder-251104.2.dist-info/RECORD +0 -20
  56. /easycoder/{close.png → icons/close.png} +0 -0
  57. /easycoder/{tick.png → icons/tick.png} +0 -0
  58. {easycoder-251104.2.dist-info → easycoder-260110.1.dist-info}/WHEEL +0 -0
  59. {easycoder-251104.2.dist-info → easycoder-260110.1.dist-info}/entry_points.txt +0 -0
  60. {easycoder-251104.2.dist-info → easycoder-260110.1.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,236 @@
1
+ from .ec_classes import ECObject
2
+
3
+ ###############################################################################
4
+ # A generic graphic element
5
+ class ECGElement(ECObject):
6
+ def __init__(self):
7
+ super().__init__()
8
+
9
+ # By default, classes that inherit from here do not belong to this package
10
+ def isCoreClass(self):
11
+ return False
12
+
13
+ ###############################################################################
14
+ # A generic widget (other packages should inherit from this)
15
+ class ECWidget(ECGElement):
16
+ def __init__(self):
17
+ super().__init__()
18
+
19
+ ###############################################################################
20
+ # A core widget (only classes in this package should inherit from this)
21
+ class ECCoreWidget(ECWidget):
22
+ def __init__(self):
23
+ super().__init__()
24
+
25
+ # This is a core class
26
+ def isCoreClass(self):
27
+ return True
28
+
29
+ ###############################################################################
30
+ # A simple panel widget
31
+ class ECPanel(ECCoreWidget):
32
+ def __init__(self):
33
+ super().__init__()
34
+
35
+ # This type of widget is clearable
36
+ def isClearable(self):
37
+ return True
38
+
39
+ ###############################################################################
40
+ # A widget with a text value
41
+ class ECTextWidget(ECCoreWidget):
42
+ def __init__(self):
43
+ super().__init__()
44
+
45
+ # This type of widget has a runtime value
46
+ def hasRuntimeValue(self):
47
+ return True
48
+
49
+ # Get the text of the widget
50
+ def getText(self):
51
+ return self.getContent() # type: ignore
52
+
53
+ # Check if the object is empty
54
+ def isEmpty(self):
55
+ return self.getText() == ""
56
+
57
+ ###############################################################################
58
+ # A layout variable
59
+ class ECLayout(ECCoreWidget):
60
+ def __init__(self):
61
+ super().__init__()
62
+
63
+ ###############################################################################
64
+ # A group variable
65
+ class ECGroup(ECCoreWidget):
66
+ def __init__(self):
67
+ super().__init__()
68
+
69
+ ###############################################################################
70
+ # A label variable
71
+ class ECLabel(ECTextWidget):
72
+ def __init__(self):
73
+ super().__init__()
74
+
75
+ # This is a core class
76
+ def isCoreClass(self):
77
+ return True
78
+
79
+ ###############################################################################
80
+ # A pushbutton variable
81
+ class ECPushButton(ECTextWidget):
82
+ def __init__(self):
83
+ super().__init__()
84
+
85
+ # This is a core class
86
+ def isCoreClass(self):
87
+ return True
88
+
89
+ ###############################################################################
90
+ # A checkbox variable
91
+ class ECCheckBox(ECCoreWidget):
92
+ def __init__(self):
93
+ super().__init__()
94
+
95
+ # This object has a runtime value
96
+ def hasRuntimeValue(self):
97
+ return True
98
+
99
+ # Get the content of the value at the current index
100
+ def getContent(self):
101
+ v = self.getValue()
102
+ if v is None: return None
103
+ return v.getContent().isChecked()
104
+
105
+ ###############################################################################
106
+ # A line input widget
107
+ class ECLineInput(ECTextWidget):
108
+ def __init__(self):
109
+ super().__init__()
110
+
111
+ # This object has a runtime value
112
+ def hasRuntimeValue(self):
113
+ return True
114
+
115
+ # Set the text of the widget
116
+ def setText(self, text):
117
+ v = self.getValue()
118
+ if v is None: return
119
+ v.getContent().setText(str(text)) # type: ignore
120
+
121
+ # Get the text of the widget
122
+ def getText(self):
123
+ return self.getValue().getContent().text() # type: ignore
124
+
125
+ # Get the content of the value at the current index
126
+ def getContent(self):
127
+ v = self.getValue()
128
+ if v is None: return None
129
+ return v.getContent().text()
130
+
131
+ ###############################################################################
132
+ # A multiline widget
133
+ class ECMultiline(ECTextWidget):
134
+ def __init__(self):
135
+ super().__init__()
136
+
137
+ ###############################################################################
138
+ # A listbox variable
139
+ class ECListBox(ECCoreWidget):
140
+ def __init__(self):
141
+ super().__init__()
142
+
143
+ # This type of widget has a runtime value
144
+ def hasRuntimeValue(self):
145
+ return True
146
+
147
+ # This type of widget is mutable.
148
+ def isMutable(self):
149
+ return True
150
+
151
+ # This type of widget is clearable
152
+ def isClearable(self):
153
+ return True
154
+
155
+ # Get the selected item in the list box
156
+ def getContent(self):
157
+ widget = self.getValue() # type: ignore
158
+ content = widget.selectedItems()[0].text() if widget.selectedItems() else None # type: ignore
159
+ return content
160
+
161
+ # Get the text of the widget
162
+ def getText(self):
163
+ return self.getContent() # type: ignore
164
+
165
+ # Get the count of items in the list box
166
+ def getCount(self):
167
+ v = self.getContent().count() # type: ignore
168
+ return v
169
+
170
+ # Get the index of the selected item
171
+ def getIndex(self):
172
+ widget = self.getValue() # type: ignore
173
+ index = widget.currentRow() # type: ignore
174
+ return index
175
+
176
+ ###############################################################################
177
+ # A combo box variable
178
+ class ECComboBox(ECCoreWidget):
179
+ def __init__(self):
180
+ super().__init__()
181
+
182
+ # This type of widget has a runtime value
183
+ def hasRuntimeValue(self):
184
+ return True
185
+
186
+ # This type of widget is mutable.
187
+ def isMutable(self):
188
+ return True
189
+
190
+ # This type of widget is clearable
191
+ def isClearable(self):
192
+ return True
193
+
194
+ # Get the count of items in the combo box
195
+ def getCount(self):
196
+ v = self.getContent().count() # type: ignore
197
+ return v
198
+
199
+ # Get the text of the widget
200
+ def getText(self):
201
+ return self.getValue().getContent().text() # type: ignore
202
+
203
+
204
+ ###############################################################################
205
+ # A window variable
206
+ class ECWindow(ECGElement):
207
+ def __init__(self):
208
+ super().__init__()
209
+
210
+ # This is a core class
211
+ def isCoreClass(self):
212
+ return True
213
+
214
+ ###############################################################################
215
+ # A dialog variable
216
+ class ECDialog(ECGElement):
217
+ def __init__(self):
218
+ super().__init__()
219
+
220
+ # This is a core class
221
+ def isCoreClass(self):
222
+ return True
223
+
224
+ # This type of widget has a runtime value
225
+ def hasRuntimeValue(self):
226
+ return True
227
+
228
+ def getReturnValue(self):
229
+ dialog = self.getValue().getContent() # type: ignore
230
+ return dialog.result
231
+
232
+ ###############################################################################
233
+ # A message box variable
234
+ class ECMessageBox(ECGElement):
235
+ def __init__(self):
236
+ super().__init__()