pyflashgui 0.2.3__tar.gz → 0.2.4__tar.gz
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.
- {pyflashgui-0.2.3/pyflashgui.egg-info → pyflashgui-0.2.4}/PKG-INFO +1 -1
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/README.md +2 -13
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/__init__.py +1 -1
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/help/__init__.py +4 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/help/changelog.md +18 -1
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/help/console.md +2 -2
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/help/files.md +1 -1
- pyflashgui-0.2.4/pyflashgui/help/getting-started.md +14 -0
- pyflashgui-0.2.4/pyflashgui/help/manual.md +13 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/help/probe.md +4 -4
- pyflashgui-0.2.4/pyflashgui/help/uninstalling.md +11 -0
- pyflashgui-0.2.4/pyflashgui/help/window.md +27 -0
- pyflashgui-0.2.4/pyflashgui/help/workspaces.md +25 -0
- pyflashgui-0.2.4/pyflashgui/ui/clear_menu.py +86 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/ui/console_view.py +3 -4
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/ui/folders.py +1 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/ui/main_window.py +6 -3
- {pyflashgui-0.2.3 → pyflashgui-0.2.4/pyflashgui.egg-info}/PKG-INFO +1 -1
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui.egg-info/SOURCES.txt +4 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_console.py +10 -2
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_events.py +1 -1
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_icons.py +59 -1
- pyflashgui-0.2.3/pyflashgui/help/manual.md +0 -68
- pyflashgui-0.2.3/pyflashgui/ui/clear_menu.py +0 -45
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/LICENSE +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/LICENSES/MIT.txt +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/NOTICE +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/PYPI.md +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/__main__.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/backends/__init__.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/backends/base.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/backends/jlink_backend.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/backends/pyocd_backend.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/backends/pyocd_packs.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/backends/simulated.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/core/__init__.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/core/checkout.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/core/compare.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/core/context.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/core/events.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/core/excepthook.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/core/flasher.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/core/images.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/core/installation.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/core/layout.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/core/library_log.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/core/memory_map.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/core/pack_manager.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/core/packages.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/core/paths.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/core/settings.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/core/shortcut.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/core/slow_start.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/core/timing.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/core/updates.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/core/worker.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/core/workspaces.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/help/about.md +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/help/main-window.png +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/help/memory-map.md +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/help/memory.md +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/__init__.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/add_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/arrow_counterclockwise_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/arrow_down_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/arrow_download_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/arrow_left_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/arrow_swap_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/arrow_sync_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/arrow_sync_circle_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/arrow_undo_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/arrow_up_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/book_open_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/bug_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/certificate_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/checkmark_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/column_double_compare_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/copy_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/crop_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/delete_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/dismiss_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/dismiss_circle_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/document_add_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/door_arrow_right_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/edit_line_horizontal_3_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/eraser_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/eye_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/folder_open_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/home_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/info_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/pin_20_filled.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/pin_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/play_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/plug_connected_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/plug_disconnected_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/power_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/pulse_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/question_circle_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/rename_a_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/save_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/save_edit_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/search_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/select_all_on_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/settings_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/stop_20_filled.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/subtract_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/target_arrow_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/window_new_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/window_new_rotate_180_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/icons/wrench_20_regular.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/pyflashgui.ico +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/pyflashgui.png +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/pyflashgui.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/pyflashgui_small.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/resources/tick.svg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/ui/__init__.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/ui/buttons.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/ui/confirm.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/ui/crop_dialog.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/ui/detached.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/ui/diagnostics.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/ui/erase_dialog.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/ui/event_colours.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/ui/files_view.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/ui/fonts.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/ui/help_menu.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/ui/icons.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/ui/map_view.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/ui/memory_view.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/ui/messages.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/ui/packs_dialog.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/ui/pane_bar.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/ui/panes.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/ui/persist.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/ui/probe_bar.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/ui/read_dialog.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/ui/scripting.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/ui/scripts_menu.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/ui/session.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/ui/theme.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui/ui/workspace_menu.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui.egg-info/dependency_links.txt +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui.egg-info/entry_points.txt +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui.egg-info/requires.txt +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyflashgui.egg-info/top_level.txt +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/pyproject.toml +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/setup.cfg +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_backends.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_build_version.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_changelog.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_checkout.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_compare.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_diagnostics.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_docking.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_erase.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_event_log_times.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_excepthook.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_flash_panes.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_flasher.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_folders.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_fonts.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_headers.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_help.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_icon.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_images.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_installation.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_jlink_backend.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_launcher.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_layout.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_memory_map.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_messages.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_notice.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_packages.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_packaging.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_packs.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_persist.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_read_back.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_readme.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_scripts_menu.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_shortcut.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_slow_start.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_theme.py +0 -0
- {pyflashgui-0.2.3 → pyflashgui-0.2.4}/tests/test_workspaces.py +0 -0
|
@@ -95,6 +95,8 @@ Without it pyflashgui stops as it starts, naming the package that is missing.
|
|
|
95
95
|
|
|
96
96
|
**Where your own files are kept** is the same whichever way it was installed: your workspaces and settings are in `%APPDATA%\pyflashgui` on Windows and `~/.config/pyflashgui` on Linux. Upgrading and uninstalling leave that folder alone.
|
|
97
97
|
|
|
98
|
+
**Uninstalling**, for each of the three, is in the manual: [Uninstalling](pyflashgui/help/uninstalling.md), also under *Help > Documentation*.
|
|
99
|
+
|
|
98
100
|
## Probes
|
|
99
101
|
|
|
100
102
|
Every probe is reached through [pyOCD](https://pyocd.io), which has a driver for each of the ways a probe talks over USB. Which probes work is therefore pyOCD's list:
|
|
@@ -140,19 +142,6 @@ A USB isolator between the PC and the probe breaks a ground loop between them. [
|
|
|
140
142
|
|
|
141
143
|
The icons beside the words on buttons and menu items are Microsoft's [Fluent UI System Icons](https://github.com/microsoft/fluentui-system-icons), MIT, shipped with pyflashgui as files rather than a package.
|
|
142
144
|
|
|
143
|
-
## Uninstalling
|
|
144
|
-
|
|
145
|
-
- **The Windows installer:** *Settings > Apps* (or *Add or remove programs*), or *Uninstall
|
|
146
|
-
pyflashgui* in its Start menu folder. It takes away its shortcuts too.
|
|
147
|
-
- **pip:** `pip uninstall pyflashgui`, and what *Tools > Settings* added, as for a clone.
|
|
148
|
-
- **A Git clone:** delete the folder. If *Tools > Settings* was used to add a shortcut, take
|
|
149
|
-
that away as well: the shortcuts are
|
|
150
|
-
`%APPDATA%\Microsoft\Windows\Start Menu\Programs\pyflashgui.lnk` and `pyflashgui.lnk` on
|
|
151
|
-
the desktop (on Linux, `~/.local/share/applications/pyflashgui.desktop`).
|
|
152
|
-
|
|
153
|
-
Your workspaces and settings are in `%APPDATA%\pyflashgui` (`~/.config/pyflashgui` on Linux),
|
|
154
|
-
and no way of uninstalling touches them; delete that folder to remove them too.
|
|
155
|
-
|
|
156
145
|
## Contributing
|
|
157
146
|
|
|
158
147
|
See [CONTRIBUTING.md](CONTRIBUTING.md): the policy for changes, setting up to work on pyflashgui, running the tests, and building the Windows installer. Everyone taking part is asked to follow the [code of conduct](CODE_OF_CONDUCT.md). Security problems go through [SECURITY.md](SECURITY.md).
|
|
@@ -39,11 +39,15 @@ MANUAL = "manual.md"
|
|
|
39
39
|
#: would otherwise be found by a user.
|
|
40
40
|
PAGES = (
|
|
41
41
|
MANUAL,
|
|
42
|
+
"getting-started.md",
|
|
43
|
+
"window.md",
|
|
42
44
|
"probe.md",
|
|
43
45
|
"files.md",
|
|
44
46
|
"memory-map.md",
|
|
45
47
|
"memory.md",
|
|
46
48
|
"console.md",
|
|
49
|
+
"workspaces.md",
|
|
50
|
+
"uninstalling.md",
|
|
47
51
|
"about.md",
|
|
48
52
|
"changelog.md",
|
|
49
53
|
)
|
|
@@ -9,6 +9,22 @@ since the last version, and comes out in the next one.
|
|
|
9
9
|
|
|
10
10
|
## [Unreleased]
|
|
11
11
|
|
|
12
|
+
## [0.2.4] - 2026-11-19
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- **Save all...** on the right-click of the Event Log and the Python Console's output,
|
|
17
|
+
after Select All: writes all of it to a text file.
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
21
|
+
- The Python Console has no **Clear** button: *Clear all* on a right-click in its output
|
|
22
|
+
does the same. *Clear* on the right-click of the console and the Event Log is *Clear all*,
|
|
23
|
+
since it empties the whole pane, not what is selected as Copy beside it does.
|
|
24
|
+
- The manual's front page is its contents and nothing else. What was on it has pages of its
|
|
25
|
+
own -- *Getting started*, *The window* and *Workspaces* -- and *Uninstalling* is a page of
|
|
26
|
+
the manual rather than a section of the README.
|
|
27
|
+
|
|
12
28
|
## [0.2.3] - 2026-11-12
|
|
13
29
|
|
|
14
30
|
### Added
|
|
@@ -219,7 +235,8 @@ since the last version, and comes out in the next one.
|
|
|
219
235
|
for updates.
|
|
220
236
|
- Launchers for a source folder on Windows and Linux, and the build of the Windows installer.
|
|
221
237
|
|
|
222
|
-
[Unreleased]: https://github.com/davhodg/pyflashgui/compare/v0.2.
|
|
238
|
+
[Unreleased]: https://github.com/davhodg/pyflashgui/compare/v0.2.4...HEAD
|
|
239
|
+
[0.2.4]: https://github.com/davhodg/pyflashgui/compare/v0.2.3...v0.2.4
|
|
223
240
|
[0.2.3]: https://github.com/davhodg/pyflashgui/compare/v0.2.2...v0.2.3
|
|
224
241
|
[0.2.2]: https://github.com/davhodg/pyflashgui/compare/v0.2.1...v0.2.2
|
|
225
242
|
[0.2.1]: https://github.com/davhodg/pyflashgui/compare/v0.2.0...v0.2.1
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
*View > Python Console* opens a Python prompt inside pyflashgui, with the probe and the target to hand as `flash`. It is for what the buttons do not do by themselves: reading the same word over and over to watch it change, putting a test pattern into RAM, programming two images in turn, or a loop that programs, resets and reads back.
|
|
6
6
|
|
|
7
|
-
It behaves like the `python` prompt: a block over several lines carries on with `...`, Up and Down go back through what was typed, and a mistake shows Python's own traceback. The box typed into takes several lines too: **Shift+Enter** starts another, indented as the one before and further after a colon, and several lines pasted at once arrive as they are. **Enter** then runs them all together, each value shown as the prompt shows it, and **Tab** indents. **Run script...** runs a `.py` file with the same names. **Stop** stops a line or a script, and
|
|
7
|
+
It behaves like the `python` prompt: a block over several lines carries on with `...`, Up and Down go back through what was typed, and a mistake shows Python's own traceback. The box typed into takes several lines too: **Shift+Enter** starts another, indented as the one before and further after a colon, and several lines pasted at once arrive as they are. **Enter** then runs them all together, each value shown as the prompt shows it, and **Tab** indents. **Run script...** runs a `.py` file with the same names. **Stop** stops a line or a script, and a right-click in what it has printed offers *Save all...*, to write it to a text file, and *Clear all*.
|
|
8
8
|
|
|
9
9
|
**File > Run script...** does the same from the menu, and shows the console first, so that what the script prints can be read. **File > Recent scripts** lists the last five run in the workspace, by either, newest first: one click runs one again. A script kept in the workspace's folder is remembered by where it is in it, and found wherever the workspace is taken.
|
|
10
10
|
|
|
@@ -14,7 +14,7 @@ It behaves like the `python` prompt: a block over several lines carries on with
|
|
|
14
14
|
|---|---|
|
|
15
15
|
| `flash` | the probe and the target: see below |
|
|
16
16
|
| `files` | the Files pane, with `files.entries` and `files.add_files([...])` |
|
|
17
|
-
| `log(text)` | a line in the [Event Log](
|
|
17
|
+
| `log(text)` | a line in the [Event Log](window.md) |
|
|
18
18
|
| `wait(seconds)` | let the window run for that long: a script's `sleep` |
|
|
19
19
|
| `window`, `ctx` | the main window, and the settings and folders of the workspace |
|
|
20
20
|
| `ScriptError` | what `flash` raises when it could not do what it was asked |
|
|
@@ -33,7 +33,7 @@ These need a probe [connected](probe.md) to a target.
|
|
|
33
33
|
|
|
34
34
|
- **Read...** reads part of the target's memory back, changing nothing in the target. What is read joins the list and is shown in a [Memory](memory.md) pane of its own. It can be saved to a file from there.
|
|
35
35
|
- **Erase...** erases the target's flash: all of it, some of its regions, or a range of addresses. See *Erasing* below.
|
|
36
|
-
- **Program and verify** erases the sectors what is ticked writes to, writes it -- files, reads, or both -- then reads the flash back to check it holds what was written. Before it starts, what is ticked is checked against the target's memory and against each other, as the [memory map](memory-map.md) shows: if anything is an error there -- two of them writing the same addresses is one -- nothing is programmed and the [Event Log](
|
|
36
|
+
- **Program and verify** erases the sectors what is ticked writes to, writes it -- files, reads, or both -- then reads the flash back to check it holds what was written. Before it starts, what is ticked is checked against the target's memory and against each other, as the [memory map](memory-map.md) shows: if anything is an error there -- two of them writing the same addresses is one -- nothing is programmed and the [Event Log](window.md) says why. The arrow beside it has each half on its own:
|
|
37
37
|
- **Program** erases and writes without the check: quicker for a large image.
|
|
38
38
|
- **Program without erasing** writes, erasing nothing first: for flash that **Erase...** has cleared already, so that it is not erased twice. Flash can only be written where it is blank; written over anything else, it holds neither what was there nor what was written, so **Verify** after it says whether it took. Offered through pyOCD; J-Link Commander erases what it has to by itself.
|
|
39
39
|
- **Verify** reads the flash back and compares it with what is ticked, changing nothing and restarting nothing. If they differ, it says how many bytes do and where the first one is.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
[← Contents](manual.md)
|
|
2
|
+
|
|
3
|
+
# Getting started
|
|
4
|
+
|
|
5
|
+
pyflashgui is a graphical flash programming tool: for Arm Cortex-M targets with any debug probe pyOCD supports, and for the many other devices a J-Link reaches through SEGGER's J-Link Commander.
|
|
6
|
+
|
|
7
|
+
**It is a tool for the bench**: for development, debugging and hobby use. It is not meant for production programming.
|
|
8
|
+
|
|
9
|
+
1. Choose the **Probe** and the **Target** in the bar across the top.
|
|
10
|
+
2. **Add...** the firmware files in the Files pane.
|
|
11
|
+
3. Look at the memory map under the list: it says whether they fit the target.
|
|
12
|
+
4. **Connect**, then **Program and verify**, then **Reset** to start what was written.
|
|
13
|
+
|
|
14
|
+
With no hardware, choose *Simulated* under **Using** and the same steps work on a target that exists only in memory.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# pyflashgui manual
|
|
2
|
+
|
|
3
|
+
- [Getting started](getting-started.md): what pyflashgui is for, and programming a board in four steps
|
|
4
|
+
- [The window](window.md): the Event Log, the panes, the theme and the icons
|
|
5
|
+
- [Probe and target](probe.md): the bar across the top, connecting, and which probes need what
|
|
6
|
+
- [Files](files.md): what is open, files and reads alike, and Read, Erase, Program and verify, Reset and Compare
|
|
7
|
+
- [Memory map](memory-map.md): where what is ticked lands, checked before anything is sent
|
|
8
|
+
- [Memory](memory.md): the bytes of a file or of what was read back, to look at, compare and save
|
|
9
|
+
- [Python Console](console.md): `flash` and scripts, for what the buttons do not do
|
|
10
|
+
- [Workspaces](workspaces.md): one for each thing being worked on, and where your files are
|
|
11
|
+
- [Uninstalling](uninstalling.md): for each way of installing, and what is left behind
|
|
12
|
+
- [About, licences and updates](about.md)
|
|
13
|
+
- [Changes](changelog.md)
|
|
@@ -9,14 +9,14 @@ The bar across the top of the window says what pyflashgui is connected through a
|
|
|
9
9
|
| **Using** | What reaches the probe. *pyOCD* works with many probes and Cortex-M devices. *J-Link Commander* works with a J-Link and every device SEGGER's software knows. *Simulated* is a probe and a target that exist only in memory, for trying pyflashgui with no hardware. |
|
|
10
10
|
| **Probe** | The debug probe, by its description and serial number. **Find probes** looks again for what is plugged in, and opening the list does too when no probe was found. |
|
|
11
11
|
| **Target** | The device on the end of the probe. Type any part of its name to find it. |
|
|
12
|
-
| **Speed** | How fast the probe clocks the debug port. *Default* leaves it to pyOCD, which uses 1 MHz, or to J-Link Commander, which lets the J-Link choose. The [Event Log](
|
|
12
|
+
| **Speed** | How fast the probe clocks the debug port. *Default* leaves it to pyOCD, which uses 1 MHz, or to J-Link Commander, which lets the J-Link choose. The [Event Log](window.md) says the speed on connecting. |
|
|
13
13
|
| **Interface** | With J-Link Commander only: how the probe is wired to the device. |
|
|
14
14
|
| **Stop when connecting** | Through pyOCD: whether connecting stops the target, ticked to begin with. Untick it to attach to the target as it is, running. |
|
|
15
15
|
| **Connect** | Attaches the probe to the target, and becomes **Disconnect**. |
|
|
16
16
|
|
|
17
17
|
The bar at the foot of the window says what is known of the target that is chosen: who makes it, its core where that is known, and how much flash and RAM it has.
|
|
18
18
|
|
|
19
|
-
What is chosen is kept in the [workspace](
|
|
19
|
+
What is chosen is kept in the [workspace](workspaces.md): the target and the speed belong to the product being worked on, and the probe is remembered by its serial number, so a bench with two probes on it connects through the same one each time.
|
|
20
20
|
|
|
21
21
|
## Connecting
|
|
22
22
|
|
|
@@ -24,7 +24,7 @@ What is chosen is kept in the [workspace](manual.md): the target and the speed b
|
|
|
24
24
|
|
|
25
25
|
A reset that takes the debug connection with it -- an XMC4500 reset by its reset pin through a J-Link does -- is connected again by itself, leaving the target running, and the Event Log says so.
|
|
26
26
|
|
|
27
|
-
If connecting fails, the [Event Log](
|
|
27
|
+
If connecting fails, the [Event Log](window.md) says what the probe reported. The usual causes are the target not being powered, the wrong target chosen, or a cable too long for the speed: try a lower **Speed**.
|
|
28
28
|
|
|
29
29
|
## Targets
|
|
30
30
|
|
|
@@ -41,7 +41,7 @@ pyOCD has a few dozen targets built in. Every other Cortex-M device is described
|
|
|
41
41
|
3. Select the device and press **Install pack**. The pack is downloaded from its maker; it holds the whole family the device belongs to, and can be over a hundred megabytes.
|
|
42
42
|
4. Press **Use as target**, or close the dialog and choose the device in the bar.
|
|
43
43
|
|
|
44
|
-
**A download cannot be stopped once it has started**, the list's or a pack's. The dialog can be closed while one runs: the [Event Log](
|
|
44
|
+
**A download cannot be stopped once it has started**, the list's or a pack's. The dialog can be closed while one runs: the [Event Log](window.md) says when it has arrived, or why it did not. Both downloads need the internet; apart from *Help > Check for updates*, nothing else in pyflashgui does.
|
|
45
45
|
|
|
46
46
|
Under the list is where the selected device's pack is downloaded from. The *From* column of the packs installed says the same for each of them.
|
|
47
47
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
[← Contents](manual.md)
|
|
2
|
+
|
|
3
|
+
# Uninstalling
|
|
4
|
+
|
|
5
|
+
How depends on how pyflashgui was installed:
|
|
6
|
+
|
|
7
|
+
- **The Windows installer:** *Settings > Apps* (or *Add or remove programs*), or *Uninstall pyflashgui* in its Start menu folder. It takes away its shortcuts too.
|
|
8
|
+
- **pip:** `pip uninstall pyflashgui`, and what *Tools > Settings* added, as for a clone.
|
|
9
|
+
- **A Git clone:** delete the folder. If *Tools > Settings* was used to add a shortcut, take that away as well: the shortcuts are `%APPDATA%\Microsoft\Windows\Start Menu\Programs\pyflashgui.lnk` and `pyflashgui.lnk` on the desktop (on Linux, `~/.local/share/applications/pyflashgui.desktop`).
|
|
10
|
+
|
|
11
|
+
Your workspaces and settings are in `%APPDATA%\pyflashgui` (`~/.config/pyflashgui` on Linux), and no way of uninstalling touches them; delete that folder to remove them too.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
[← Contents](manual.md)
|
|
2
|
+
|
|
3
|
+
# The window
|
|
4
|
+
|
|
5
|
+
## Event Log
|
|
6
|
+
|
|
7
|
+
Everything pyflashgui has to say arrives in the **Event Log**, with warnings and errors in their own colours. A warning or an error opens the pane if it has been closed; an ordinary note does not. Right-click in it for *Save all...*, which writes it to a text file, and *Clear all*, which empties it. An error pyOCD or pylink reports for itself is put here too, named after the library; their other lines are kept for *Help > Diagnostics*. *Tools > Settings > Time on Event Log lines* puts the time of day each line was written in front of it, to the second -- *14:03:27 Connected ...* -- from the next line on, and it is kept when the log is copied. It is off to begin with, and kept with this computer rather than the workspace, like the theme.
|
|
8
|
+
|
|
9
|
+
## Panes
|
|
10
|
+
|
|
11
|
+
Each pane can be dragged to another edge of the window, floated, or closed, and **View** brings one back. *View > Reset layout* puts every pane back where it starts and the window back to the size it opens at.
|
|
12
|
+
|
|
13
|
+
## Theme
|
|
14
|
+
|
|
15
|
+
*Tools > Settings > Theme* chooses light, dark, or whichever the operating system is set to. Which look Qt draws it in depends on the system:
|
|
16
|
+
|
|
17
|
+
| System | Style |
|
|
18
|
+
|---|---|
|
|
19
|
+
| Windows 11 | Qt's Windows 11 style, light and dark |
|
|
20
|
+
| Windows 10 and earlier | Qt's style for these has no dark version, so Qt's Fusion style, light and dark alike |
|
|
21
|
+
| Linux | Usually Fusion, or the desktop's own Qt style where it sets one |
|
|
22
|
+
|
|
23
|
+
The style in use is shown greyed out at the bottom of the *Theme* menu, and in the menu's tooltip, and *Help > Diagnostics...* gives it with the theme.
|
|
24
|
+
|
|
25
|
+
## Icons
|
|
26
|
+
|
|
27
|
+
*Tools > Settings > Show icons* puts a standard icon beside the word on common buttons and menu items -- Connect, Erase, Save, Stop and the like -- to find them at a glance. It is on to start with; untick it for the words alone. The words are there either way, and the choice is kept for you on this computer. The icons are Microsoft's Fluent UI System Icons, shipped with pyflashgui, so they are the same on Windows and Linux, drawn in the theme's text colour.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
[← Contents](manual.md)
|
|
2
|
+
|
|
3
|
+
# Workspaces
|
|
4
|
+
|
|
5
|
+
A workspace is everything about one thing being worked on: the probe, the target, its speed, the list of files and the arrangement of the panes. There is always one, called *default*, and somebody with one board never needs another.
|
|
6
|
+
|
|
7
|
+
*File > Workspace* is for when there is more than one:
|
|
8
|
+
|
|
9
|
+
- **New...** starts an empty one under a name: no files, and no probe or target chosen.
|
|
10
|
+
- **Save as...** keeps everything as it is now under a new name and carries on in that, leaving the one it came from as it was.
|
|
11
|
+
- **Switch to** opens another. The one in use is ticked, and the window's title names it unless it is *default*.
|
|
12
|
+
- **Manage...** renames or deletes one that is not in use. *default* is always there. Deleting one removes its settings and never the firmware files it listed.
|
|
13
|
+
|
|
14
|
+
There is no Save: a workspace is saved as it is changed. Switching reloads everything, so it asks first if a target is connected, since that target is let go of, and it waits while a target is being written to. What has been read and not saved is asked about as it is when pyflashgui is closed. The workspace last used is the one opened next time.
|
|
15
|
+
|
|
16
|
+
## Where your files are
|
|
17
|
+
|
|
18
|
+
Each workspace is a folder of its own, under pyflashgui's:
|
|
19
|
+
|
|
20
|
+
| | |
|
|
21
|
+
|---|---|
|
|
22
|
+
| Windows | `%APPDATA%\pyflashgui` |
|
|
23
|
+
| Linux | `~/.config/pyflashgui` |
|
|
24
|
+
|
|
25
|
+
*File > Workspace > Open folder* opens the one in use.
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
# SPDX-FileCopyrightText: 2026 davhodg
|
|
3
|
+
"""The right-click of a text pane: the usual Copy and Select All, Save all and Clear all.
|
|
4
|
+
|
|
5
|
+
*Save all* and *Clear all* rather than *Save* and *Clear*: Copy acts on what is
|
|
6
|
+
selected, and these take the whole pane whatever is selected.
|
|
7
|
+
|
|
8
|
+
Qt makes Copy and Select All, and gives them the system's own icons, which are
|
|
9
|
+
not the ones beside every other word in pyflashgui and stay when *Show icons*
|
|
10
|
+
is off. They are given pyflashgui's here, by the name Qt gives each.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from __future__ import annotations
|
|
14
|
+
|
|
15
|
+
from pathlib import Path
|
|
16
|
+
|
|
17
|
+
from PySide6.QtCore import QPoint, Qt
|
|
18
|
+
from PySide6.QtGui import QIcon
|
|
19
|
+
from PySide6.QtWidgets import QMenu, QPlainTextEdit
|
|
20
|
+
|
|
21
|
+
from pyflashgui.core.context import Context
|
|
22
|
+
from pyflashgui.ui import folders, icons
|
|
23
|
+
|
|
24
|
+
TITLE = "Clear all"
|
|
25
|
+
SAVE_TITLE = "Save all..."
|
|
26
|
+
|
|
27
|
+
#: Qt's own items in a text's menu, by the object name Qt gives each.
|
|
28
|
+
QT_ITEMS = {"edit-copy": icons.COPY, "select-all": icons.SELECT_ALL}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def menu(text: QPlainTextEdit, ctx: Context | None = None, name: str = "") -> QMenu:
|
|
32
|
+
"""The standard menu for the text, then Save all, and Clear all below a line.
|
|
33
|
+
Made, not shown. Save all is there when ``ctx`` is given, with ``name`` the
|
|
34
|
+
start of the file name offered.
|
|
35
|
+
|
|
36
|
+
Save all comes after Select All, Qt's last: the two that take the whole
|
|
37
|
+
pane together, after Copy, which takes what is selected.
|
|
38
|
+
"""
|
|
39
|
+
built = text.createStandardContextMenu()
|
|
40
|
+
for action in built.actions():
|
|
41
|
+
if (picture := QT_ITEMS.get(action.objectName())) is not None:
|
|
42
|
+
icons.beside(action, picture)
|
|
43
|
+
elif not action.icon().isNull():
|
|
44
|
+
action.setIcon(QIcon()) # one of Qt's with no picture of ours: the word alone
|
|
45
|
+
if ctx is not None:
|
|
46
|
+
save = icons.beside(built.addAction(SAVE_TITLE), icons.SAVE)
|
|
47
|
+
save.setToolTip("Write everything in this pane to a text file.")
|
|
48
|
+
save.triggered.connect(lambda: save_text(text, ctx, name))
|
|
49
|
+
save.setEnabled(bool(text.toPlainText()))
|
|
50
|
+
built.addSeparator()
|
|
51
|
+
icons.beside(built.addAction(TITLE, text.clear), icons.CLEAR)
|
|
52
|
+
return built
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
def save_text(text: QPlainTextEdit, ctx: Context, name: str) -> None:
|
|
56
|
+
"""Ask where, and write the whole pane there as UTF-8 text."""
|
|
57
|
+
path = folders.save_file(
|
|
58
|
+
text,
|
|
59
|
+
ctx,
|
|
60
|
+
folders.TEXT,
|
|
61
|
+
f"Save {name}" if name else "Save",
|
|
62
|
+
"Text (*.txt);;All files (*)",
|
|
63
|
+
ctx.user_dir,
|
|
64
|
+
suggested=folders.stamped(name.lower().replace(" ", "-") or "pyflashgui", ".txt"),
|
|
65
|
+
)
|
|
66
|
+
if not path:
|
|
67
|
+
return
|
|
68
|
+
try:
|
|
69
|
+
Path(path).write_text(text.toPlainText() + "\n", encoding="utf-8")
|
|
70
|
+
except OSError as exc:
|
|
71
|
+
ctx.events.error(f"Could not write {path}: {exc}")
|
|
72
|
+
return
|
|
73
|
+
ctx.events.information(f"{name or 'Text'} written to {path}")
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
def add(text: QPlainTextEdit, ctx: Context | None = None, name: str = "") -> QPlainTextEdit:
|
|
77
|
+
"""Give the text pane the menu above on its right-click."""
|
|
78
|
+
|
|
79
|
+
def show(at: QPoint) -> None:
|
|
80
|
+
shown = menu(text, ctx, name)
|
|
81
|
+
shown.exec(text.viewport().mapToGlobal(at))
|
|
82
|
+
shown.deleteLater()
|
|
83
|
+
|
|
84
|
+
text.setContextMenuPolicy(Qt.CustomContextMenu)
|
|
85
|
+
text.customContextMenuRequested.connect(show)
|
|
86
|
+
return text
|
|
@@ -208,7 +208,7 @@ class ConsoleView(QWidget):
|
|
|
208
208
|
self.running = False
|
|
209
209
|
mono = fonts.mono()
|
|
210
210
|
|
|
211
|
-
self.output = clear_menu.add(QPlainTextEdit())
|
|
211
|
+
self.output = clear_menu.add(QPlainTextEdit(), ctx, "Console output")
|
|
212
212
|
self.output.setReadOnly(True)
|
|
213
213
|
self.output.setFont(mono)
|
|
214
214
|
self.output.setMaximumBlockCount(MOST_LINES)
|
|
@@ -225,15 +225,14 @@ class ConsoleView(QWidget):
|
|
|
225
225
|
self.stop_button = icons.beside(QPushButton("Stop"), icons.STOP)
|
|
226
226
|
self.stop_button.setToolTip(STOP_TIP)
|
|
227
227
|
self.stop_button.clicked.connect(self.stop)
|
|
228
|
-
|
|
229
|
-
|
|
228
|
+
# No Clear button: it is rarely wanted, and Clear all is on the
|
|
229
|
+
# output's right-click.
|
|
230
230
|
|
|
231
231
|
row = QHBoxLayout()
|
|
232
232
|
row.addWidget(self.prompt)
|
|
233
233
|
row.addWidget(self.input, 1)
|
|
234
234
|
row.addWidget(self.run_button)
|
|
235
235
|
row.addWidget(self.stop_button)
|
|
236
|
-
row.addWidget(clear)
|
|
237
236
|
layout = QVBoxLayout(self)
|
|
238
237
|
layout.setContentsMargins(2, 2, 2, 2)
|
|
239
238
|
layout.addWidget(self.output)
|
|
@@ -42,6 +42,7 @@ EXPORT = "export" # what is read back from a target and saved
|
|
|
42
42
|
WORKSPACE = "workspace" # workspace files, exported and imported
|
|
43
43
|
SCRIPT = "script" # Python, run in the console
|
|
44
44
|
PACK = "pack" # CMSIS-Packs downloaded by hand, added to pyOCD's devices
|
|
45
|
+
TEXT = "text" # what a pane says, saved as text: the Event Log, the console's output
|
|
45
46
|
|
|
46
47
|
PREFIX = "folders."
|
|
47
48
|
#: The chosen file type is kept beside the folder and under the same
|
|
@@ -104,6 +104,8 @@ COMMANDER_SETTING = "jlink/commander"
|
|
|
104
104
|
#: In QSettings, like the theme: how somebody likes to read the log, not
|
|
105
105
|
#: something about a workspace.
|
|
106
106
|
LOG_TIMES_KEY = "event_log/times"
|
|
107
|
+
#: What the Event Log is called in Save all's dialog, and the start of the file name offered.
|
|
108
|
+
LOG_NAME = "Event Log"
|
|
107
109
|
LOG_TIMES_TIP = (
|
|
108
110
|
"The time of day each Event Log line was written, to the second, in front\n"
|
|
109
111
|
"of it: 14:03:27 Connected ... From the next line on; kept when lines are\n"
|
|
@@ -150,9 +152,8 @@ class MainWindow(QMainWindow):
|
|
|
150
152
|
self.log.setReadOnly(True)
|
|
151
153
|
# Everything is kept, however long the session: the line that matters
|
|
152
154
|
# is often the first of a thousand, and a log that drops its oldest
|
|
153
|
-
# lines drops exactly that one. Clear, on the right-click, empties it.
|
|
155
|
+
# lines drops exactly that one. Clear all, on the right-click, empties it.
|
|
154
156
|
self.log.setMaximumBlockCount(0)
|
|
155
|
-
clear_menu.add(self.log)
|
|
156
157
|
#: Every line said to the user arrives here with a level, and this is
|
|
157
158
|
#: the only thing that writes to the pane. Warnings and errors open it
|
|
158
159
|
#: if it has been closed; notes do not.
|
|
@@ -169,6 +170,8 @@ class MainWindow(QMainWindow):
|
|
|
169
170
|
self.library_log.install()
|
|
170
171
|
|
|
171
172
|
self.ctx = Context(events=self.events)
|
|
173
|
+
# Once there is somewhere to save to: Save all is on it too.
|
|
174
|
+
clear_menu.add(self.log, self.ctx, LOG_NAME)
|
|
172
175
|
#: Started with pythonw, which has no console, so a traceback from a
|
|
173
176
|
#: Qt slot would otherwise go nowhere at all -- see the module.
|
|
174
177
|
self.exceptions = ExceptionLogger(self.events.post)
|
|
@@ -1079,7 +1082,7 @@ class MainWindow(QMainWindow):
|
|
|
1079
1082
|
|
|
1080
1083
|
def log_menu(self):
|
|
1081
1084
|
"""Copy and Select All as usual, and Clear. Built apart from being shown."""
|
|
1082
|
-
return clear_menu.menu(self.log)
|
|
1085
|
+
return clear_menu.menu(self.log, self.ctx, LOG_NAME)
|
|
1083
1086
|
|
|
1084
1087
|
def _dark_log(self) -> bool:
|
|
1085
1088
|
"""Which set of colours reads on the Event Log's own background."""
|
|
@@ -45,11 +45,15 @@ pyflashgui/help/about.md
|
|
|
45
45
|
pyflashgui/help/changelog.md
|
|
46
46
|
pyflashgui/help/console.md
|
|
47
47
|
pyflashgui/help/files.md
|
|
48
|
+
pyflashgui/help/getting-started.md
|
|
48
49
|
pyflashgui/help/main-window.png
|
|
49
50
|
pyflashgui/help/manual.md
|
|
50
51
|
pyflashgui/help/memory-map.md
|
|
51
52
|
pyflashgui/help/memory.md
|
|
52
53
|
pyflashgui/help/probe.md
|
|
54
|
+
pyflashgui/help/uninstalling.md
|
|
55
|
+
pyflashgui/help/window.md
|
|
56
|
+
pyflashgui/help/workspaces.md
|
|
53
57
|
pyflashgui/resources/__init__.py
|
|
54
58
|
pyflashgui/resources/pyflashgui.ico
|
|
55
59
|
pyflashgui/resources/pyflashgui.png
|
|
@@ -288,8 +288,16 @@ def test_the_output_can_be_cleared_from_its_right_click(window):
|
|
|
288
288
|
|
|
289
289
|
output = window.console.output
|
|
290
290
|
output.setPlainText(">>> 1 + 1\n2\n")
|
|
291
|
-
assert output.contextMenuPolicy() == Qt.CustomContextMenu, "the menu with Clear, not Qt's"
|
|
291
|
+
assert output.contextMenuPolicy() == Qt.CustomContextMenu, "the menu with Clear all, not Qt's"
|
|
292
292
|
menu = clear_menu.menu(output)
|
|
293
|
-
clear = next(a for a in menu.actions() if a.text() == "Clear")
|
|
293
|
+
clear = next(a for a in menu.actions() if a.text() == "Clear all")
|
|
294
294
|
clear.trigger()
|
|
295
295
|
assert output.toPlainText() == ""
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
def test_there_is_no_clear_button_beside_run_and_stop(window):
|
|
299
|
+
"""Rarely wanted, and on the output's right-click as Clear all."""
|
|
300
|
+
from PySide6.QtWidgets import QPushButton
|
|
301
|
+
|
|
302
|
+
named = {b.text() for b in window.console.findChildren(QPushButton)}
|
|
303
|
+
assert "Clear" not in named and {"Run script...", "Stop"} <= named
|
|
@@ -237,6 +237,6 @@ def test_the_event_log_keeps_everything_until_cleared(app, window):
|
|
|
237
237
|
window.events.post(f"line {n}", INFORMATION)
|
|
238
238
|
app.processEvents()
|
|
239
239
|
assert window.log.document().blockCount() >= 2500
|
|
240
|
-
clear = next(a for a in window.log_menu().actions() if a.text() == "Clear")
|
|
240
|
+
clear = next(a for a in window.log_menu().actions() if a.text() == "Clear all")
|
|
241
241
|
clear.trigger()
|
|
242
242
|
assert window.log.document().isEmpty()
|
|
@@ -108,6 +108,64 @@ def test_copy_and_select_all_are_given_ours_and_clear_is_added(app, monkeypatch)
|
|
|
108
108
|
given = {a.objectName() or a.text(): a.property(icons.PROPERTY) for a in menu.actions()}
|
|
109
109
|
assert given["edit-copy"] == icons.COPY
|
|
110
110
|
assert given["select-all"] == icons.SELECT_ALL
|
|
111
|
-
assert given["Clear"] == icons.CLEAR
|
|
111
|
+
assert given["Clear all"] == icons.CLEAR
|
|
112
112
|
menu.actions()[-1].trigger()
|
|
113
113
|
assert text.toPlainText() == ""
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
def test_save_all_comes_after_select_all_and_writes_the_whole_pane(app, tmp_path, monkeypatch):
|
|
117
|
+
from types import SimpleNamespace
|
|
118
|
+
|
|
119
|
+
from PySide6.QtWidgets import QPlainTextEdit
|
|
120
|
+
|
|
121
|
+
from pyflashgui.ui import clear_menu, folders
|
|
122
|
+
|
|
123
|
+
said = []
|
|
124
|
+
events = SimpleNamespace(
|
|
125
|
+
information=lambda m: said.append(("info", m)), error=lambda m: said.append(("error", m))
|
|
126
|
+
)
|
|
127
|
+
ctx = SimpleNamespace(events=events, user_dir=tmp_path)
|
|
128
|
+
text = QPlainTextEdit("first line\nsecond line")
|
|
129
|
+
text.setReadOnly(True)
|
|
130
|
+
cursor = text.textCursor()
|
|
131
|
+
cursor.setPosition(0)
|
|
132
|
+
cursor.setPosition(5, cursor.MoveMode.KeepAnchor) # "first" selected: Save all ignores it
|
|
133
|
+
text.setTextCursor(cursor)
|
|
134
|
+
menu = clear_menu.menu(text, ctx, "Event Log")
|
|
135
|
+
named = [a.objectName() or a.text() for a in menu.actions() if not a.isSeparator()]
|
|
136
|
+
assert named[-3:] == ["select-all", "Save all...", "Clear all"]
|
|
137
|
+
|
|
138
|
+
path = tmp_path / "log.txt"
|
|
139
|
+
asked = []
|
|
140
|
+
monkeypatch.setattr(folders, "save_file", lambda *a, **k: asked.append((a, k)) or str(path))
|
|
141
|
+
next(a for a in menu.actions() if a.text() == "Save all...").trigger()
|
|
142
|
+
assert path.read_text(encoding="utf-8") == "first line\nsecond line\n"
|
|
143
|
+
assert asked[0][0][2] == folders.TEXT, "text files have their own folder"
|
|
144
|
+
assert asked[0][1]["suggested"].startswith("event-log_")
|
|
145
|
+
assert said == [("info", f"Event Log written to {path}")]
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
def test_save_all_cancelled_writes_nothing(app, tmp_path, monkeypatch):
|
|
149
|
+
from types import SimpleNamespace
|
|
150
|
+
|
|
151
|
+
from PySide6.QtWidgets import QPlainTextEdit
|
|
152
|
+
|
|
153
|
+
from pyflashgui.ui import clear_menu, folders
|
|
154
|
+
|
|
155
|
+
monkeypatch.setattr(folders, "save_file", lambda *a, **k: "")
|
|
156
|
+
said = []
|
|
157
|
+
ctx = SimpleNamespace(
|
|
158
|
+
events=SimpleNamespace(information=said.append, error=said.append), user_dir=tmp_path
|
|
159
|
+
)
|
|
160
|
+
clear_menu.save_text(QPlainTextEdit("a line"), ctx, "Console output")
|
|
161
|
+
assert said == [] and list(tmp_path.iterdir()) == []
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
def test_without_somewhere_to_save_there_is_no_save_all(app):
|
|
165
|
+
from PySide6.QtWidgets import QPlainTextEdit
|
|
166
|
+
|
|
167
|
+
from pyflashgui.ui import clear_menu
|
|
168
|
+
|
|
169
|
+
text = QPlainTextEdit("x") # kept, so the menu it owns is not deleted with it
|
|
170
|
+
named = [a.text() for a in clear_menu.menu(text).actions()]
|
|
171
|
+
assert "Save all..." not in named and "Clear all" in named
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
# pyflashgui manual
|
|
2
|
-
|
|
3
|
-
pyflashgui is a graphical flash programming tool: for Arm Cortex-M targets with any debug probe pyOCD supports, and for the many other devices a J-Link reaches through SEGGER's J-Link Commander.
|
|
4
|
-
|
|
5
|
-

|
|
6
|
-
|
|
7
|
-
**It is a tool for the bench**: for development, debugging and hobby use. It is not meant for production programming.
|
|
8
|
-
|
|
9
|
-
## Contents
|
|
10
|
-
|
|
11
|
-
- [Probe and target](probe.md): the bar across the top, connecting, and which probes need what
|
|
12
|
-
- [Files](files.md): what is open, files and reads alike, and Read, Erase, Program and verify, Reset and Compare
|
|
13
|
-
- [Memory map](memory-map.md): where what is ticked lands, checked before anything is sent
|
|
14
|
-
- [Memory](memory.md): the bytes of a file or of what was read back, to look at, compare and save
|
|
15
|
-
- [Python Console](console.md): `flash` and scripts, for what the buttons do not do
|
|
16
|
-
- [About, licences and updates](about.md)
|
|
17
|
-
- [Changes](changelog.md)
|
|
18
|
-
|
|
19
|
-
## In short
|
|
20
|
-
|
|
21
|
-
1. Choose the **Probe** and the **Target** in the bar across the top.
|
|
22
|
-
2. **Add...** the firmware files in the Files pane.
|
|
23
|
-
3. Look at the memory map under the list: it says whether they fit the target.
|
|
24
|
-
4. **Connect**, then **Program and verify**, then **Reset** to start what was written.
|
|
25
|
-
|
|
26
|
-
With no hardware, choose *Simulated* under **Using** and the same steps work on a target that exists only in memory.
|
|
27
|
-
|
|
28
|
-
## The window
|
|
29
|
-
|
|
30
|
-
Everything pyflashgui has to say arrives in the **Event Log**, with warnings and errors in their own colours. A warning or an error opens the pane if it has been closed; an ordinary note does not. Right-click in it to clear it. An error pyOCD or pylink reports for itself is put here too, named after the library; their other lines are kept for *Help > Diagnostics*. *Tools > Settings > Time on Event Log lines* puts the time of day each line was written in front of it, to the second -- *14:03:27 Connected ...* -- from the next line on, and it is kept when the log is copied. It is off to begin with, and kept with this computer rather than the workspace, like the theme.
|
|
31
|
-
|
|
32
|
-
Each pane can be dragged to another edge of the window, floated, or closed, and **View** brings one back. *View > Reset layout* puts every pane back where it starts and the window back to the size it opens at.
|
|
33
|
-
|
|
34
|
-
*Tools > Settings > Theme* chooses light, dark, or whichever the operating system is set to. Which look Qt draws it in depends on the system:
|
|
35
|
-
|
|
36
|
-
| System | Style |
|
|
37
|
-
|---|---|
|
|
38
|
-
| Windows 11 | Qt's Windows 11 style, light and dark |
|
|
39
|
-
| Windows 10 and earlier | Qt's style for these has no dark version, so Qt's Fusion style, light and dark alike |
|
|
40
|
-
| Linux | Usually Fusion, or the desktop's own Qt style where it sets one |
|
|
41
|
-
|
|
42
|
-
The style in use is shown greyed out at the bottom of the *Theme* menu, and in the menu's tooltip, and *Help > Diagnostics...* gives it with the theme.
|
|
43
|
-
|
|
44
|
-
*Tools > Settings > Show icons* puts a standard icon beside the word on common buttons and menu items -- Connect, Erase, Save, Stop and the like -- to find them at a glance. It is on to start with; untick it for the words alone. The words are there either way, and the choice is kept for you on this computer. The icons are Microsoft's Fluent UI System Icons, shipped with pyflashgui, so they are the same on Windows and Linux, drawn in the theme's text colour.
|
|
45
|
-
|
|
46
|
-
## Workspaces
|
|
47
|
-
|
|
48
|
-
A workspace is everything about one thing being worked on: the probe, the target, its speed, the list of files and the arrangement of the panes. There is always one, called *default*, and somebody with one board never needs another.
|
|
49
|
-
|
|
50
|
-
*File > Workspace* is for when there is more than one:
|
|
51
|
-
|
|
52
|
-
- **New...** starts an empty one under a name: no files, and no probe or target chosen.
|
|
53
|
-
- **Save as...** keeps everything as it is now under a new name and carries on in that, leaving the one it came from as it was.
|
|
54
|
-
- **Switch to** opens another. The one in use is ticked, and the window's title names it unless it is *default*.
|
|
55
|
-
- **Manage...** renames or deletes one that is not in use. *default* is always there. Deleting one removes its settings and never the firmware files it listed.
|
|
56
|
-
|
|
57
|
-
There is no Save: a workspace is saved as it is changed. Switching reloads everything, so it asks first if a target is connected, since that target is let go of, and it waits while a target is being written to. What has been read and not saved is asked about as it is when pyflashgui is closed. The workspace last used is the one opened next time.
|
|
58
|
-
|
|
59
|
-
## Where your files are
|
|
60
|
-
|
|
61
|
-
Each workspace is a folder of its own, under pyflashgui's:
|
|
62
|
-
|
|
63
|
-
| | |
|
|
64
|
-
|---|---|
|
|
65
|
-
| Windows | `%APPDATA%\pyflashgui` |
|
|
66
|
-
| Linux | `~/.config/pyflashgui` |
|
|
67
|
-
|
|
68
|
-
*File > Workspace > Open folder* opens the one in use.
|