Check-in [d90db23c73]
Overview
Comment: | Move liststore_edit() and app_bin_check() from configwin. to uikit.
Allow ListStore for config_play/_record/_specbuttons without `editable` row [2], which is now a property of the CellRenderers (instead of a cell-attribute). Specialized uikit.config_treeview() builds a custom two-column TreeView now. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
d90db23c73ed95d4734a9e5ba794702a |
User & Date: | mario on 2016-10-28 18:11:30 |
Other Links: | manifest | tags |
Context
2016-10-28
| ||
18:13 | Update config_play/_record and their TreeViews for the slimmer ListStore without row[2] `editable` bool, and the more generic uikit.liststore_edit callback (still requires lambda handlers for column and liststore as user_data). check-in: bca80ec8af user: mario tags: trunk | |
18:11 |
Move liststore_edit() and app_bin_check() from configwin. to uikit.
Allow ListStore for config_play/_record/_specbuttons without `editable` row [2], which is now a property of the CellRenderers (instead of a cell-attribute). Specialized uikit.config_treeview() builds a custom two-column TreeView now. check-in: d90db23c73 user: mario tags: trunk | |
2016-10-27
| ||
16:42 | Introduce `dict` configuration type, prepare TreeView in uikit (similar to record/play config table). check-in: 095de3353f user: mario tags: trunk | |
Changes
Modified channels/configwin.py from [0227a222a4] to [834ef930af].
1 2 3 4 5 6 7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | - | # api: streamtuner2 # title: Config dialog # description: Allows to configure players, options, and plugins # version: 2.5 # type: feature # category: ui # config: - |
︙ | |||
66 67 68 69 70 71 72 | 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | - - + + | # number elif isinstance(w, gtk.SpinButton): w.set_value(int(val)) # list elif isinstance(w, gtk.ListStore) and isinstance(val, dict): w.clear() for k,v in val.items(): |
︙ | |||
95 96 97 98 99 100 101 | 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | - - - - - - - - - - - - - - - - - - - - - | elif isinstance(w, gtk.ListStore): config[key] = {} for row in w: if row[0] and row[1]: config[key][row[0]] = row[1] log.CONF("config save", prefix+key, val) |
︙ | |||
175 176 177 178 179 180 181 | 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 | - + + | else: cb = gtk.SpinButton() cb.set_adjustment(adj) cb.set_digits(0) # ListView elif opt["type"] in ("list", "table", "array", "dict"): |
︙ |
Modified uikit.py from [22fa63b417] to [1647517a84].
︙ | |||
505 506 507 508 509 510 511 | 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 | - + - - + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + | a.set_padding(0, 0, align, 0) a.add(w) w = a w.show_all() return w |
︙ |