qpuiq 0.18__py3-none-any.whl → 0.19__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 +1 -1
- PUI/dom.py +15 -5
- {qpuiq-0.18.dist-info → qpuiq-0.19.dist-info}/METADATA +1 -1
- {qpuiq-0.18.dist-info → qpuiq-0.19.dist-info}/RECORD +7 -7
- {qpuiq-0.18.dist-info → qpuiq-0.19.dist-info}/WHEEL +0 -0
- {qpuiq-0.18.dist-info → qpuiq-0.19.dist-info}/licenses/LICENSE.txt +0 -0
- {qpuiq-0.18.dist-info → qpuiq-0.19.dist-info}/top_level.txt +0 -0
PUI/__init__.py
CHANGED
PUI/dom.py
CHANGED
|
@@ -17,6 +17,8 @@ def sortGridDOMInPlace(dom):
|
|
|
17
17
|
dom.sort(key=lambda c:(c.grid_row, c.grid_column, c.grid_rowspan, c.grid_columnspan))
|
|
18
18
|
|
|
19
19
|
def dom_remove_node(dom_parent, dom_offset, child):
|
|
20
|
+
if DEBUG:
|
|
21
|
+
print(f"dom_remove_node key={child.key} virtual={child.pui_virtual} children={len(child.children)} dom_parent={dom_parent.key} dom_offset={dom_offset}")
|
|
20
22
|
if child.pui_virtual:
|
|
21
23
|
ret = [child]
|
|
22
24
|
for c in child.children:
|
|
@@ -59,17 +61,20 @@ def sync(node, dom_parent, dom_offset, oldVDOM, newVDOM, depth=0):
|
|
|
59
61
|
oldOrdered.reverse()
|
|
60
62
|
newOrdered.reverse()
|
|
61
63
|
|
|
62
|
-
oldVDOM
|
|
63
|
-
|
|
64
|
+
oldVDOM.clear()
|
|
65
|
+
oldVDOM.extend(oldOrdered + oldOutOfOrdered)
|
|
66
|
+
newVDOM.clear()
|
|
67
|
+
newVDOM.extend(newOrdered + newOutOfOrdered)
|
|
64
68
|
|
|
65
69
|
if DEBUG:
|
|
66
70
|
print(f"{(depth+1)*' '}===OLD===")
|
|
67
71
|
for c in oldVDOM:
|
|
68
|
-
print(f"{(depth+1)*' '}{c.key} virtual={c.pui_virtual} ui={c.ui}")
|
|
72
|
+
print(f"{(depth+1)*' '}{c.key} virtual={c.pui_virtual} children={len(c.children)} ui={c.ui}")
|
|
69
73
|
|
|
70
74
|
print(f"{(depth+1)*' '}===NEW===")
|
|
71
75
|
for c in newVDOM:
|
|
72
|
-
print(f"{(depth+1)*' '}{c.key} virtual={c.pui_virtual}")
|
|
76
|
+
print(f"{(depth+1)*' '}{c.key} virtual={c.pui_virtual} children={len(c.children)}")
|
|
77
|
+
print(f"{(depth+1)*' '}=========")
|
|
73
78
|
|
|
74
79
|
oldVMap = [x.key for x in oldVDOM]
|
|
75
80
|
newVMap = [x.key for x in newVDOM]
|
|
@@ -225,13 +230,18 @@ def sync(node, dom_parent, dom_offset, oldVDOM, newVDOM, depth=0):
|
|
|
225
230
|
break # finish
|
|
226
231
|
|
|
227
232
|
# Step 4. trim removed trail
|
|
233
|
+
if DEBUG:
|
|
234
|
+
print(f"{(depth+1)*' '}S4. TRIM")
|
|
228
235
|
nl = len(newVDOM)
|
|
236
|
+
if DEBUG:
|
|
237
|
+
print(f"{(depth+1)*' '}S4. TRIM", f"dom_offset={dom_offset}", len(oldVDOM), "=>", len(newVDOM))
|
|
229
238
|
while len(oldVDOM) > nl:
|
|
230
239
|
old = oldVDOM.pop(nl)
|
|
240
|
+
print(f"{(depth+2)*' '}", f"key={old.key} virtual={old.pui_virtual} children={len(old.children)}")
|
|
231
241
|
oldVMap.pop(nl)
|
|
232
242
|
nodes = dom_remove_node(dom_parent, dom_offset + nl, old)
|
|
233
243
|
dom_children_num -= len([n for n in nodes if not n.pui_virtual and not n.pui_outoforder])
|
|
234
|
-
toBeDeleted.
|
|
244
|
+
toBeDeleted.append(old)
|
|
235
245
|
|
|
236
246
|
for c in newVDOM:
|
|
237
247
|
c.postUpdate()
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
PUI/__init__.py,sha256=
|
|
1
|
+
PUI/__init__.py,sha256=G3XzL3s7H2Jd6sqOs8kgxroBQHwZ-V35sDH02uW1EEE,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=
|
|
4
|
+
PUI/dom.py,sha256=a1D4_1RJiPvw11eJZrkik9NQzL3brRuGHvs6Y6xoeAg,11238
|
|
5
5
|
PUI/interfaces.py,sha256=rGUciM3S6ICEVgVoahkva8yXUGpweqy1kAzhUQut40E,2182
|
|
6
6
|
PUI/node.py,sha256=DqsDQpQwMYql0gU21BiF-gn50WXxzxgAW8UuMWnAyrY,13348
|
|
7
7
|
PUI/state.py,sha256=BLz-LM_s4_T9Tu_AqombQc87gkV5N8Wgsq1njSkxkBY,20201
|
|
@@ -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.
|
|
101
|
-
qpuiq-0.
|
|
102
|
-
qpuiq-0.
|
|
103
|
-
qpuiq-0.
|
|
104
|
-
qpuiq-0.
|
|
100
|
+
qpuiq-0.19.dist-info/licenses/LICENSE.txt,sha256=1Xwik2AmLNGoIYhAPzvNC28M08Q3EvkOe4TtlQuSd_E,1072
|
|
101
|
+
qpuiq-0.19.dist-info/METADATA,sha256=rXQ5zUWGKuthEntYFoE0otoR4rV1ERBf-UqusqXQBLk,5822
|
|
102
|
+
qpuiq-0.19.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
|
|
103
|
+
qpuiq-0.19.dist-info/top_level.txt,sha256=zMudhifPite0CEVGYvdi-5W3P_dpum71xjU7_g-ZHS0,4
|
|
104
|
+
qpuiq-0.19.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|