qpuiq 0.21__py3-none-any.whl → 0.22__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 qpuiq might be problematic. Click here for more details.

PUI/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "0.21"
1
+ __version__ = "0.22"
2
2
 
3
3
  from .node import *
4
4
  from .view import *
PUI/dom.py CHANGED
@@ -237,7 +237,8 @@ def sync(node, dom_parent, dom_offset, oldVDOM, newVDOM, depth=0):
237
237
  print(f"{(depth+1)*' '}S4. TRIM", f"dom_offset={dom_offset}", len(oldVDOM), "=>", len(newVDOM))
238
238
  while len(oldVDOM) > nl:
239
239
  old = oldVDOM.pop(nl)
240
- print(f"{(depth+2)*' '}", f"key={old.key} virtual={old.pui_virtual} children={len(old.children)}")
240
+ if DEBUG:
241
+ print(f"{(depth+2)*' '}", f"key={old.key} virtual={old.pui_virtual} children={len(old.children)}")
241
242
  oldVMap.pop(nl)
242
243
  nodes = dom_remove_node(dom_parent, dom_offset + nl, old)
243
244
  dom_children_num -= len([n for n in nodes if not n.pui_virtual and not n.pui_outoforder])
PUI/state.py CHANGED
@@ -199,6 +199,9 @@ class StateObject(BaseState):
199
199
  if ex_type is None: # don't consume exception
200
200
  return self
201
201
 
202
+ def __eq__(self, other):
203
+ return self.__values == other
204
+
202
205
  # getter
203
206
  def __getattr__(self, key):
204
207
  if not key.startswith("_"):
@@ -278,6 +281,9 @@ class StateList(BaseState):
278
281
  if ex_type is None: # don't consume exception
279
282
  return self
280
283
 
284
+ def __eq__(self, other):
285
+ return self.__values == other
286
+
281
287
  # getter
282
288
  def __getitem__(self, key):
283
289
  try:
@@ -295,6 +301,7 @@ class StateList(BaseState):
295
301
  elif isinstance(ret, StateDict):
296
302
  ret._StateDict__listeners.add(view)
297
303
  return ret
304
+
298
305
  # setter
299
306
  def __setitem__(self, key, value):
300
307
  try:
@@ -520,6 +527,9 @@ class StateDict(BaseState):
520
527
  if ex_type is None: # don't consume exception
521
528
  return self
522
529
 
530
+ def __eq__(self, other):
531
+ return self.__values == other
532
+
523
533
  # setter
524
534
  def __delitem__(self, key):
525
535
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qpuiq
3
- Version: 0.21
3
+ Version: 0.22
4
4
  Summary: "PUI" Python Declarative UI Framework
5
5
  Home-page: https://github.com/buganini/PUI
6
6
  Author: Buganini Chiu
@@ -1,10 +1,10 @@
1
- PUI/__init__.py,sha256=lgczhErzRuT5bNMWtgVHBC9M1ZQpgz90MweYzfeJXx0,966
1
+ PUI/__init__.py,sha256=6BVGJXhybVu6hbFKPwWi7njqueitabfvcj-xtnBItAE,966
2
2
  PUI/common.py,sha256=fUJmHOu5lSCeiOhFDF6YqulJxFqWmsneqnDZ2kZFFmM,581
3
3
  PUI/decorator.py,sha256=BN3POYv69QCDomoHENN-UA-d4wY_vfARIb5RJ2qEnS8,483
4
- PUI/dom.py,sha256=a1D4_1RJiPvw11eJZrkik9NQzL3brRuGHvs6Y6xoeAg,11238
4
+ PUI/dom.py,sha256=RuSNYJGs_4DAOroIKv6qDREvxCRf4thO6F4KUdf7aIA,11260
5
5
  PUI/interfaces.py,sha256=rGUciM3S6ICEVgVoahkva8yXUGpweqy1kAzhUQut40E,2182
6
6
  PUI/node.py,sha256=DqsDQpQwMYql0gU21BiF-gn50WXxzxgAW8UuMWnAyrY,13348
7
- PUI/state.py,sha256=xez7-AmgrH1PUoXjhjWNX4JjyXt_4wLtSynyllG9Dmo,20209
7
+ PUI/state.py,sha256=R-LEXuwpSfCe3C4BnyVv0RNjzBBrQYRUeKAHhKaEa6A,20414
8
8
  PUI/timeline.py,sha256=-mO1TLqxp2_3dk-EvdBE9wBkQf5RIPrPazTPXDzWSN0,940
9
9
  PUI/utils.py,sha256=canb7_Uz0sQ1UZDzyDuIsfAVXzEfZCkc9F81sMY4rTE,505
10
10
  PUI/view.py,sha256=Oe6sXLHD554GnlLlO5QpY7kegngkzrmMEYRHrdzGZUQ,4623
@@ -97,8 +97,8 @@ PUI/wx/scroll.py,sha256=pvRmt04XEgObpIgwl9i52Kf1wI9ubUfZM77fPHGW9zU,1494
97
97
  PUI/wx/text.py,sha256=YeIyDyHH0xBcD_iXbYSTtvL25YDtug1QJNVPvCSAqEk,544
98
98
  PUI/wx/textfield.py,sha256=v3cSnmsyBix_G8xFXgZZrNLydlLTA6gQQPpkTdJ29hk,2086
99
99
  PUI/wx/window.py,sha256=HBiWRpuhjSS89pjbdlbstjQmfR0mSECTsOPLu7ymLjo,2017
100
- qpuiq-0.21.dist-info/LICENSE.txt,sha256=1Xwik2AmLNGoIYhAPzvNC28M08Q3EvkOe4TtlQuSd_E,1072
101
- qpuiq-0.21.dist-info/METADATA,sha256=ACL0-cmYzvWmI6WtohKSpPYHezlVzSbTrrxHDARK4oM,5671
102
- qpuiq-0.21.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
103
- qpuiq-0.21.dist-info/top_level.txt,sha256=zMudhifPite0CEVGYvdi-5W3P_dpum71xjU7_g-ZHS0,4
104
- qpuiq-0.21.dist-info/RECORD,,
100
+ qpuiq-0.22.dist-info/LICENSE.txt,sha256=1Xwik2AmLNGoIYhAPzvNC28M08Q3EvkOe4TtlQuSd_E,1072
101
+ qpuiq-0.22.dist-info/METADATA,sha256=1o6pxrSrMuuE9bkpF-KcFidDBm0niuKH_pD82voGtmE,5671
102
+ qpuiq-0.22.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
103
+ qpuiq-0.22.dist-info/top_level.txt,sha256=zMudhifPite0CEVGYvdi-5W3P_dpum71xjU7_g-ZHS0,4
104
+ qpuiq-0.22.dist-info/RECORD,,
File without changes