-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotes.txt
34 lines (26 loc) · 1.11 KB
/
notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Tree model architecture:
`ObsList` = "pure" list list_model
Python list,
plus: Children source / retrieval,
plus: events:
on_insert,
on_replace,
on_remove,
on_load_children,
on_sort,
on_get_selection,
plus: notion of associated "toolkit id"
`ListBinding` = databinding (non-toolkit specific):
mapping list columns to object propertes/functions and vice-versa
sort-key / sort-ascending
bind events to hook methods (to be subclassed)
`ListBindingQt`, `ListBindingTk`: actual implementation of event reactions; also
doubles as QAbstractitemModel / kind-of Tkinter traceable variable. ie.
adapter-like classes
Open problems / issues:
- Assigning ObsList from Listview A to Listview B binds both listviews to the list.
Test that this works (views synchronized; last assignment controls get_selection)
- ObsList.children_source: This is now a property of the ObsList (ie. model.)
When assigning a non-obslist to a view, children_source is taken over from
previous val --> impure!
when assigning an ObsList, its children_source is used --> hint in manual