Check-in [5539fcccc2]
Overview
Comment: | Figured out how to use standard confirm-overwrite dialog (buttons were defined, but no actions associated). Removed custom msg box. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | action-mapfmts |
Files: | files | file ages | folders |
SHA1: |
5539fcccc2ccb51a3744d5eee41d7cbb |
User & Date: | mario on 2015-04-09 21:57:21 |
Other Links: | branch diff | manifest | tags |
Context
2015-04-09
| ||
21:58 | Python3 doesn't like `if [x = ...]` inline assignment trickery (kwargs out of scope). check-in: 82cf514e49 user: mario tags: action-mapfmts | |
21:57 | Figured out how to use standard confirm-overwrite dialog (buttons were defined, but no actions associated). Removed custom msg box. check-in: 5539fcccc2 user: mario tags: action-mapfmts | |
14:50 | Still some parameter renaming in action module to do. Optional support for row={} parameter in play/record calls, in case .pls/.m3u needs to be constructed (to retain title=). Adapt action playlist exporting to wrapper object, which preconverts plain URL lists or [rows] list, can itself call convert_playlist(), and optionalized file writing. Rewrite main save() and exportcat.save() to utilize new save_playlist(). Implement overwrite confirmation for Save-as dialog. check-in: b784d408c1 user: mario tags: action-mapfmts | |
Changes
Modified uikit.py from [5abf53dbd8] to [f012e456ad].
︙ | |||
360 361 362 363 364 365 366 | 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 | + + - - + + + + + + + + - + - - - - + - - - - | #-- Save-As dialog # @staticmethod def save_file(title="Save As", parent=None, fn="", formats=[("*.pls", "*.pls"), ("*.xspf", "*.xpsf"), ("*.m3u", "*.m3u"), ("*.jspf", "*.jspf"), ("*.asx", "*.asx"), ("*.json", "*.json"), ("*.smil", "*.smil"), ("*.wpl", "*.wpl"), ("*","*")]): # With overwrite confirmation |
︙ | |||
470 471 472 473 474 475 476 | 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 | - + | # manual signal binding with a dict of { (widget, signal): callback } @staticmethod def add_signals(builder, map): for (widget,signal),func in map.items(): builder.get_widget(widget).connect(signal, func) |
︙ |