pyfigures 0.2.8__tar.gz → 0.2.9__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.
Files changed (334) hide show
  1. {pyfigures-0.2.8 → pyfigures-0.2.9}/LICENSE +24 -24
  2. {pyfigures-0.2.8 → pyfigures-0.2.9}/PKG-INFO +4 -4
  3. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/__init__.py +10 -10
  4. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/album/__init__.py +9 -9
  5. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/album/__main__.py +13 -13
  6. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/arrowheads.py +36 -36
  7. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/assistant/__init__.py +85 -85
  8. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/assistant/advanced_annotations.py +407 -407
  9. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/assistant/assistant_actions.py +379 -379
  10. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/assistant/categorized_mcp.py +484 -445
  11. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/assistant/existing_tools.py +170 -170
  12. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/assistant/figure_state.py +111 -106
  13. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/assistant/gui_selection.py +223 -206
  14. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/assistant/launch.py +245 -245
  15. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/assistant/letter_sequence.py +30 -30
  16. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/assistant/live_mcp.py +387 -384
  17. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/assistant/live_structure.py +254 -224
  18. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/assistant/manual_help.py +165 -165
  19. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/assistant/native_gui.py +357 -354
  20. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/assistant/original_registry.py +170 -150
  21. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/assistant/partner_gui.py +1088 -999
  22. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/assistant/plot_lifecycle.py +47 -47
  23. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/assistant/pointer_context.py +74 -63
  24. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/assistant/readability.py +72 -72
  25. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/assistant/recovery.py +56 -56
  26. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/assistant/result_evidence.py +57 -57
  27. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/assistant/session.py +992 -924
  28. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/assistant/submission_review.py +86 -86
  29. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/atomic_io.py +79 -79
  30. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/burned_text.py +104 -104
  31. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/colorbar_script.py +85 -85
  32. pyfigures-0.2.9/pyfigures/connectors.py +312 -0
  33. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/constant_panels.py +79 -79
  34. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/cvd.py +67 -67
  35. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/equations.py +309 -309
  36. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/extras.py +188 -188
  37. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/flip.py +19 -19
  38. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/about_dialog_pzf.py +103 -103
  39. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/annotation_editor.py +3858 -3812
  40. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/asingleoraspanel.py +38 -38
  41. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/autolettering_widget.py +319 -319
  42. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/bg_color_selection.py +91 -91
  43. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/bug_recorder.py +720 -720
  44. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/caption_dialog.py +52 -52
  45. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/command_box.py +36 -36
  46. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/ctrl_key.py +17 -17
  47. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/dimchooser.py +33 -33
  48. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/drag_sketch.py +455 -455
  49. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/drop_sketch.py +354 -354
  50. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/editable_export.py +1395 -1395
  51. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/editor_interaction.py +189 -189
  52. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/emptyimagedialog.py +50 -50
  53. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/equation_dialog.py +217 -217
  54. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/ezfig.py +25 -0
  55. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/fonts/README.md +28 -28
  56. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/fontselectorgui.py +59 -59
  57. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/group_builder_GUI.py +120 -120
  58. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/headless_ops.py +308 -308
  59. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/integrity_ops.py +449 -449
  60. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/journal_style_editor.py +346 -346
  61. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/label_rows.py +79 -79
  62. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/latex_code_dialog.py +137 -137
  63. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/latex_support.py +115 -115
  64. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/lutmultiselector.py +156 -156
  65. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/mcp_server_dialog.py +252 -252
  66. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/pagelimitswidget.py +72 -72
  67. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/panelcreationwidget.py +122 -122
  68. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/pdf_support.py +127 -127
  69. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/pfgui.py +8455 -8436
  70. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/portable_fonts.py +236 -236
  71. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/qc_reports.py +235 -235
  72. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/region_picker.py +68 -68
  73. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/render_headless.py +204 -204
  74. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/review/__init__.py +41 -41
  75. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/review/_template.py +231 -231
  76. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/review/dialog.py +86 -86
  77. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/review/html_export.py +101 -101
  78. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/review/send.py +43 -43
  79. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/row_letters.py +134 -134
  80. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/scalebareditor.py +219 -206
  81. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/scrollableEZFIG.py +574 -574
  82. pyfigures-0.2.9/pyfigures/gui/selection_badges.py +368 -0
  83. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/show_me_where.py +353 -353
  84. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/spaceselector.py +55 -55
  85. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/style_text_headless.py +171 -171
  86. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/svg_painter.py +76 -76
  87. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/theme.py +102 -102
  88. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/tipdialog.py +116 -116
  89. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/tutorial.py +3623 -3619
  90. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/user_extra_translation.py +51 -51
  91. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/user_prefs.py +96 -96
  92. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/video_support.py +76 -76
  93. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/web_chat_panel.py +766 -766
  94. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/zoom_links.py +130 -130
  95. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/guides.py +877 -877
  96. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/history.py +272 -272
  97. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/icons/__init__.py +40 -40
  98. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/journal_styles.py +761 -761
  99. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/latex_document.py +378 -378
  100. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/layout_formula.py +234 -234
  101. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/layout_picture.py +146 -146
  102. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/mcp_control.py +624 -624
  103. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/mcp_tools/__init__.py +1 -1
  104. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/mcp_tools/annotations.py +1719 -1711
  105. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/mcp_tools/app.py +517 -517
  106. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/mcp_tools/content.py +1540 -1536
  107. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/mcp_tools/core.py +2922 -2869
  108. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/mcp_tools/export.py +2388 -2388
  109. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/mcp_tools/guidance.py +71 -71
  110. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/mcp_tools/journal.py +130 -130
  111. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/mcp_tools/overlays.py +1765 -1463
  112. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/mcp_tools/poster.py +898 -898
  113. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/mcp_tools/qc.py +939 -939
  114. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/mcp_tools/stacks.py +1027 -1027
  115. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/mcp_tools/structure.py +2343 -2224
  116. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/mcp_tools/workflow.py +1103 -1103
  117. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/office_math.py +149 -149
  118. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/offscreen.py +46 -46
  119. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/panel_source_preview.py +101 -101
  120. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/path_resolution.py +223 -223
  121. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/poster/__init__.py +9 -9
  122. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/poster/__main__.py +45 -45
  123. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/poster/page_presets.py +25 -25
  124. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/poster/poster_align.py +187 -187
  125. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/poster/poster_canvas.py +2119 -2119
  126. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/poster/poster_headless.py +1072 -1072
  127. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/poster/poster_layout_dialog.py +114 -114
  128. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/poster/poster_recipe.py +384 -384
  129. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/poster/poster_source_data.py +130 -130
  130. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/poster/poster_templates.py +257 -257
  131. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/poster/poster_text_dialog.py +79 -79
  132. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/poster/poster_web_export.py +252 -252
  133. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/poster/poster_window.py +945 -945
  134. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/poster/serialization.py +277 -277
  135. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/qt_exit.py +117 -117
  136. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/recipe.py +2330 -2286
  137. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/script_helpers.py +24 -24
  138. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/source_snapshot.py +220 -220
  139. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/stack_info.py +231 -190
  140. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/version.py +11 -11
  141. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/zoom_geometry.py +217 -174
  142. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures.egg-info/PKG-INFO +4 -4
  143. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures.egg-info/SOURCES.txt +5 -0
  144. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures.egg-info/requires.txt +3 -3
  145. {pyfigures-0.2.8 → pyfigures-0.2.9}/setup.py +154 -154
  146. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_advanced_edit_tools.py +191 -191
  147. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_arrow_tip.py +106 -106
  148. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_arrowheads.py +110 -110
  149. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_assistant_live.py +701 -701
  150. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_atomic_io.py +100 -100
  151. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_audit_fixes.py +633 -633
  152. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_audit_fixes_20261008.py +165 -165
  153. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_backgrounds.py +122 -122
  154. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_bug_recorder.py +200 -200
  155. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_bugs_found_by_gui_e2e.py +482 -482
  156. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_canvas_context_menu.py +576 -576
  157. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_channels_property_20261105.py +54 -54
  158. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_chat_reports_20261110.py +354 -354
  159. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_codex_trial_findings.py +130 -130
  160. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_colour_bar_gui.py +166 -166
  161. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_command_box.py +22 -22
  162. pyfigures-0.2.9/tests/test_connectors_20261112.py +215 -0
  163. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_consolidate_download.py +179 -179
  164. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_constant_panels.py +193 -193
  165. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_data_plots_and_stats.py +429 -429
  166. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_deserialization.py +92 -92
  167. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_dnd_canvas_more.py +160 -160
  168. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_dnd_combine_with_target.py +95 -95
  169. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_dnd_main_editor.py +496 -496
  170. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_draft_figure.py +212 -212
  171. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_drop_sketches.py +185 -185
  172. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_editable_export.py +625 -625
  173. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_editable_plot_text.py +103 -103
  174. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_editor_interaction.py +188 -188
  175. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_editor_rotate_and_tool_20261105.py +84 -84
  176. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_empty_inset_roi_20261106.py +62 -62
  177. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_equations.py +149 -149
  178. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_exception_handler.py +101 -101
  179. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_export_waits_for_images.py +53 -53
  180. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_fig_rect_cache.py +76 -76
  181. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_figure_colors.py +163 -163
  182. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_figure_diff.py +172 -172
  183. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_fiji_formats.py +122 -122
  184. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_file_io_encoding.py +41 -41
  185. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_file_state_tracking.py +169 -122
  186. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_flip.py +171 -171
  187. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_folder_drag_and_drop.py +105 -105
  188. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_fonts_available.py +111 -111
  189. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_forbidden_files.py +59 -59
  190. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_gui_e2e_context_menu.py +530 -530
  191. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_gui_e2e_coverage.py +218 -218
  192. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_gui_e2e_dnd.py +405 -405
  193. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_gui_e2e_image_editor.py +220 -220
  194. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_gui_e2e_menus.py +1050 -1050
  195. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_gui_e2e_monkey.py +158 -158
  196. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_gui_e2e_tutorials.py +591 -591
  197. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_gui_e2e_visual.py +161 -161
  198. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_gui_menus_and_toolbar.py +765 -765
  199. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_gui_more_actions.py +188 -188
  200. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_gui_workflow_actions.py +283 -283
  201. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_guide_routing.py +31 -31
  202. pyfigures-0.2.9/tests/test_human_requests_20261112.py +762 -0
  203. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_image_opacity_reload.py +42 -42
  204. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_inset_crop_margins_20261106.py +51 -51
  205. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_integrity_and_stats.py +453 -453
  206. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_interactive_tools.py +178 -178
  207. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_internal_dnd_group_placement.py +82 -82
  208. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_inverted_luts.py +103 -103
  209. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_journal_styles.py +425 -425
  210. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_latex_code.py +129 -129
  211. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_latex_documents.py +141 -141
  212. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_latex_extras.py +356 -356
  213. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_latex_full.py +221 -221
  214. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_latex_stress_findings.py +72 -72
  215. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_launchers.py +194 -194
  216. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_layout_canvas_geometry.py +62 -62
  217. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_layout_formula.py +296 -296
  218. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_layout_stability_gui.py +410 -410
  219. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_lazy_loading_placeholder_20261106.py +79 -79
  220. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_lazy_reflow.py +157 -157
  221. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_lettering_restore.py +103 -103
  222. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_lif_series_reading.py +49 -49
  223. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_llm_feedback_20261020.py +206 -206
  224. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_lut_remove_20261105.py +111 -111
  225. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_max_height.py +134 -134
  226. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_mcp_audit_findings.py +318 -318
  227. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_mcp_control.py +349 -349
  228. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_mcp_history.py +176 -176
  229. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_mcp_server.py +1652 -1652
  230. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_mcp_stdio_protocol.py +118 -118
  231. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_mcp_text_arguments.py +53 -53
  232. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_missing_images_gui.py +132 -132
  233. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_normalization.py +157 -157
  234. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_offscreen_env.py +60 -60
  235. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_ome_zarr.py +198 -198
  236. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_omero.py +445 -445
  237. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_open_perf.py +107 -107
  238. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_panel_editor.py +529 -529
  239. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_panel_editor_more.py +289 -289
  240. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_panel_preview.py +129 -129
  241. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_parity_mcp.py +174 -174
  242. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_path_resolution.py +162 -162
  243. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_pdf_panels.py +160 -160
  244. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_placeholder_grid.py +95 -95
  245. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_portability.py +72 -72
  246. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_poster_files_and_recipe.py +452 -452
  247. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_poster_gui.py +963 -963
  248. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_poster_mcp.py +787 -787
  249. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_poster_stress_findings.py +142 -142
  250. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_poster_vector_figures.py +207 -207
  251. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_property_setters_validate.py +69 -69
  252. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_pyf_loader_thread_deadlock.py +39 -39
  253. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_pyf_loading.py +133 -133
  254. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_pymupdf_offer.py +281 -281
  255. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_qc_gui.py +216 -216
  256. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_qc_mcp_tools.py +117 -117
  257. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_qc_reports.py +238 -238
  258. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_qt_exit.py +71 -71
  259. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_recipe.py +229 -229
  260. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_recipe_checks_bundles.py +267 -267
  261. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_recipe_extra_keys.py +142 -142
  262. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_recipe_for_llms.py +535 -535
  263. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_recipe_more_keys.py +380 -380
  264. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_recordings.py +41 -41
  265. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_render_export.py +188 -188
  266. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_restyle_texts.py +112 -112
  267. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_review_and_library.py +190 -190
  268. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_row_letters_chat_style_20261106.py +80 -80
  269. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_row_letters_gui.py +414 -414
  270. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_ruler_labels.py +48 -48
  271. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_save_reminder.py +52 -52
  272. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_scale_bar_calibration.py +130 -130
  273. pyfigures-0.2.9/tests/test_scale_bar_one_property_20261112.py +146 -0
  274. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_scale_consistency.py +108 -108
  275. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_schema_sweep_findings.py +381 -381
  276. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_send_to_poster.py +76 -76
  277. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_shapes.py +651 -651
  278. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_show_me_how.py +374 -374
  279. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_show_me_where_20261105.py +213 -213
  280. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_source_data.py +133 -133
  281. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_stack_tools.py +523 -523
  282. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_stack_tools_gui.py +175 -175
  283. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_stack_with_image.py +93 -93
  284. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_stress_findings.py +315 -315
  285. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_stress_findings_20261028.py +497 -497
  286. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_stress_findings_20261029.py +500 -500
  287. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_style_audit_calbar.py +157 -157
  288. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_svg_clipping_and_pdf_pages.py +270 -270
  289. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_svg_empty_glyph.py +53 -53
  290. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_tex_install.py +192 -192
  291. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_text_editor_and_widgets.py +472 -464
  292. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_tutorial_controller.py +677 -656
  293. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_tutorials.py +206 -206
  294. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_typography_tidy.py +115 -115
  295. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_uneven_rows_20261105.py +156 -156
  296. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_user_chat_findings_20261104.py +269 -230
  297. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_user_findings_20261022.py +195 -195
  298. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_user_gui_findings_20261021.py +412 -412
  299. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_user_guide_menus.py +130 -130
  300. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_video_support.py +270 -270
  301. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_web_chat_real_page.py +49 -49
  302. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_zarr_stress_findings.py +79 -79
  303. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_zoom_callout_gui.py +80 -80
  304. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_zoom_callout_lut.py +81 -81
  305. {pyfigures-0.2.8 → pyfigures-0.2.9}/README.md +0 -0
  306. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/__main__.py +0 -0
  307. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/assistant/manual_help_verified.json +0 -0
  308. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/assistant/web_chat.py +0 -0
  309. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/__init__.py +0 -0
  310. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/colorassistant.py +0 -0
  311. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/deckcraft_blank.json +0 -0
  312. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/keep_tst_images_for_pzf.py +0 -0
  313. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/show_me_how.py +0 -0
  314. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/simple_text_editor.py +0 -0
  315. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/textEditWatcher.py +0 -0
  316. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/gui/widget_for_inset.py +0 -0
  317. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/icons/pyfigures.png +0 -0
  318. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/icons/pyfigures_album.png +0 -0
  319. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/icons/pyfigures_poster.png +0 -0
  320. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/image_search.py +0 -0
  321. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/mcp_server.py +0 -0
  322. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/mcp_tools/image_search.py +0 -0
  323. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/mcp_tools/upkeep.py +0 -0
  324. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/poster/poster_layouts.py +0 -0
  325. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/poster/poster_shapes.py +0 -0
  326. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures/self_test.py +0 -0
  327. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures.egg-info/dependency_links.txt +0 -0
  328. {pyfigures-0.2.8 → pyfigures-0.2.9}/pyfigures.egg-info/top_level.txt +0 -0
  329. {pyfigures-0.2.8 → pyfigures-0.2.9}/setup.cfg +0 -0
  330. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_canvas_keyboard_and_clicks.py +0 -0
  331. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_image_search.py +0 -0
  332. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_licensing.py +0 -0
  333. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_self_test.py +0 -0
  334. {pyfigures-0.2.8 → pyfigures-0.2.9}/tests/test_web_chat_20261109.py +0 -0
@@ -1,24 +1,24 @@
1
- BSD 2-Clause License
2
-
3
- Copyright (c) 2024, baigouy
4
-
5
- Redistribution and use in source and binary forms, with or without
6
- modification, are permitted provided that the following conditions are met:
7
-
8
- 1. Redistributions of source code must retain the above copyright notice, this
9
- list of conditions and the following disclaimer.
10
-
11
- 2. Redistributions in binary form must reproduce the above copyright notice,
12
- this list of conditions and the following disclaimer in the documentation
13
- and/or other materials provided with the distribution.
14
-
15
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
16
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
19
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
22
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
23
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1
+ BSD 2-Clause License
2
+
3
+ Copyright (c) 2024, baigouy
4
+
5
+ Redistribution and use in source and binary forms, with or without
6
+ modification, are permitted provided that the following conditions are met:
7
+
8
+ 1. Redistributions of source code must retain the above copyright notice, this
9
+ list of conditions and the following disclaimer.
10
+
11
+ 2. Redistributions in binary form must reproduce the above copyright notice,
12
+ this list of conditions and the following disclaimer in the documentation
13
+ and/or other materials provided with the distribution.
14
+
15
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
16
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
19
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
22
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
23
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyfigures
3
- Version: 0.2.8
3
+ Version: 0.2.9
4
4
  Summary: PyFigures will assist you assemble publication ready scientific figures in no time.
5
5
  Home-page: https://github.com/baigouy/PyFigures
6
6
  Author: Benoit Aigouy
@@ -46,7 +46,7 @@ Requires-Dist: latex2mathml
46
46
  Requires-Dist: mathml2omml
47
47
  Requires-Dist: pylatexenc
48
48
  Requires-Dist: pypdfium2
49
- Requires-Dist: qtpy-ai-sidecar>=0.1.5
49
+ Requires-Dist: qtpy-ai-sidecar>=0.1.7
50
50
  Requires-Dist: mcp<2,>=1.12
51
51
  Provides-Extra: ai
52
52
  Requires-Dist: mcp<2,>=1.12; extra == "ai"
@@ -63,10 +63,10 @@ Provides-Extra: omero
63
63
  Requires-Dist: omero-py; extra == "omero"
64
64
  Provides-Extra: chat
65
65
  Requires-Dist: mcp<2,>=1.12; extra == "chat"
66
- Requires-Dist: qtpy-ai-sidecar>=0.1.5; extra == "chat"
66
+ Requires-Dist: qtpy-ai-sidecar>=0.1.7; extra == "chat"
67
67
  Provides-Extra: all
68
68
  Requires-Dist: mcp<2,>=1.12; extra == "all"
69
- Requires-Dist: qtpy-ai-sidecar>=0.1.5; extra == "all"
69
+ Requires-Dist: qtpy-ai-sidecar>=0.1.7; extra == "all"
70
70
  Requires-Dist: av; extra == "all"
71
71
  Requires-Dist: opencv-python-headless; extra == "all"
72
72
  Requires-Dist: pyimagej; extra == "all"
@@ -1,10 +1,10 @@
1
- # exit codes are recorded from here on, for the Qt-teardown guard that a
2
- # headless tool may arm later (pyfigures/qt_exit.py)
3
- from pyfigures.qt_exit import install_recorder as _install_recorder
4
-
5
- _install_recorder()
6
-
7
- # extras the user installed into a standalone app (e.g. PyMuPDF) become importable
8
- from pyfigures.extras import enable_extras as _enable_extras
9
-
10
- _enable_extras()
1
+ # exit codes are recorded from here on, for the Qt-teardown guard that a
2
+ # headless tool may arm later (pyfigures/qt_exit.py)
3
+ from pyfigures.qt_exit import install_recorder as _install_recorder
4
+
5
+ _install_recorder()
6
+
7
+ # extras the user installed into a standalone app (e.g. PyMuPDF) become importable
8
+ from pyfigures.extras import enable_extras as _enable_extras
9
+
10
+ _enable_extras()
@@ -1,9 +1,9 @@
1
- """Photo album designer.
2
-
3
- A separate tool from the poster / collage designer: `python -m pyfigures.album`
4
- (or Tools > Photo album designer… in the figure editor) opens a PosterWindow
5
- in album mode — pinned front and back covers with two-page spreads between
6
- them. The poster designer cannot turn a poster into an album; albums are made
7
- here. Drawing, file format (.pyfalbum), exports, recipes (`album: true`) and
8
- MCP tools are the poster module's (pyfigures.poster).
9
- """
1
+ """Photo album designer.
2
+
3
+ A separate tool from the poster / collage designer: `python -m pyfigures.album`
4
+ (or Tools > Photo album designer… in the figure editor) opens a PosterWindow
5
+ in album mode — pinned front and back covers with two-page spreads between
6
+ them. The poster designer cannot turn a poster into an album; albums are made
7
+ here. Drawing, file format (.pyfalbum), exports, recipes (`album: true`) and
8
+ MCP tools are the poster module's (pyfigures.poster).
9
+ """
@@ -1,13 +1,13 @@
1
- """Standalone launcher: `python -m pyfigures.album` opens the photo album
2
- designer directly — the same window as the figure editor's
3
- `Tools > Photo album designer…` menu.
4
- """
5
- from pyfigures.poster.__main__ import run_poster_designer
6
-
7
-
8
- def run_album_designer():
9
- run_poster_designer(album=True)
10
-
11
-
12
- if __name__ == '__main__':
13
- run_album_designer()
1
+ """Standalone launcher: `python -m pyfigures.album` opens the photo album
2
+ designer directly — the same window as the figure editor's
3
+ `Tools > Photo album designer…` menu.
4
+ """
5
+ from pyfigures.poster.__main__ import run_poster_designer
6
+
7
+
8
+ def run_album_designer():
9
+ run_poster_designer(album=True)
10
+
11
+
12
+ if __name__ == '__main__':
13
+ run_album_designer()
@@ -1,36 +1,36 @@
1
- """Arrowhead-only marks, as in papers: a larger head and no line. Stored as an
2
- ordinary arrow (Line2D, arrow=True) whose line is much shorter than its head,
3
- so the head always swallows it — nothing new in the .pyf format, every export
4
- draws it. One rule shared by the image editor, the MCP tools and the readers
5
- that tell an arrowhead from an arrow.
6
- """
7
- from __future__ import annotations
8
-
9
- import math
10
-
11
- # head (half width, length) in multiples of the stroke: larger than an arrow's
12
- ARROWHEAD_ONLY = (6.0, 16.0)
13
- ARROWHEAD_SIZES = {"small": (4.5, 12.0), "normal": (6.0, 16.0), "large": (8.0, 22.0)}
14
- # line length (image px) of a stored arrowhead: only its direction matters
15
- HEAD_ONLY_LENGTH = 0.5
16
-
17
-
18
- def make_head_only(line, sizes=ARROWHEAD_ONLY):
19
- """Turn a drawn arrow (Line2D) into an arrowhead: same tip and direction,
20
- a line too short to show, a larger head."""
21
- p1, p2 = line.p1(), line.p2()
22
- dx, dy = p2.x() - p1.x(), p2.y() - p1.y()
23
- n = math.hypot(dx, dy)
24
- if n > 0:
25
- from qtpy.QtCore import QPointF
26
- line.setP1(QPointF(p2.x() - dx / n * HEAD_ONLY_LENGTH, p2.y() - dy / n * HEAD_ONLY_LENGTH))
27
- line.arrow = True
28
- line.arrow_at_both_ends = False
29
- line.arrowhead_width_scaler = max(float(line.arrowhead_width_scaler or 0), sizes[0])
30
- line.arrowhead_height_scaler = max(float(line.arrowhead_height_scaler or 0), sizes[1])
31
- return line
32
-
33
-
34
- def is_head_only(x1, y1, x2, y2, arrow) -> bool:
35
- """An arrow whose line is (about) HEAD_ONLY_LENGTH long: an arrowhead."""
36
- return bool(arrow) and math.hypot(float(x2) - float(x1), float(y2) - float(y1)) <= 2 * HEAD_ONLY_LENGTH
1
+ """Arrowhead-only marks, as in papers: a larger head and no line. Stored as an
2
+ ordinary arrow (Line2D, arrow=True) whose line is much shorter than its head,
3
+ so the head always swallows it — nothing new in the .pyf format, every export
4
+ draws it. One rule shared by the image editor, the MCP tools and the readers
5
+ that tell an arrowhead from an arrow.
6
+ """
7
+ from __future__ import annotations
8
+
9
+ import math
10
+
11
+ # head (half width, length) in multiples of the stroke: larger than an arrow's
12
+ ARROWHEAD_ONLY = (6.0, 16.0)
13
+ ARROWHEAD_SIZES = {"small": (4.5, 12.0), "normal": (6.0, 16.0), "large": (8.0, 22.0)}
14
+ # line length (image px) of a stored arrowhead: only its direction matters
15
+ HEAD_ONLY_LENGTH = 0.5
16
+
17
+
18
+ def make_head_only(line, sizes=ARROWHEAD_ONLY):
19
+ """Turn a drawn arrow (Line2D) into an arrowhead: same tip and direction,
20
+ a line too short to show, a larger head."""
21
+ p1, p2 = line.p1(), line.p2()
22
+ dx, dy = p2.x() - p1.x(), p2.y() - p1.y()
23
+ n = math.hypot(dx, dy)
24
+ if n > 0:
25
+ from qtpy.QtCore import QPointF
26
+ line.setP1(QPointF(p2.x() - dx / n * HEAD_ONLY_LENGTH, p2.y() - dy / n * HEAD_ONLY_LENGTH))
27
+ line.arrow = True
28
+ line.arrow_at_both_ends = False
29
+ line.arrowhead_width_scaler = max(float(line.arrowhead_width_scaler or 0), sizes[0])
30
+ line.arrowhead_height_scaler = max(float(line.arrowhead_height_scaler or 0), sizes[1])
31
+ return line
32
+
33
+
34
+ def is_head_only(x1, y1, x2, y2, arrow) -> bool:
35
+ """An arrow whose line is (about) HEAD_ONLY_LENGTH long: an arrowhead."""
36
+ return bool(arrow) and math.hypot(float(x2) - float(x1), float(y2) - float(y1)) <= 2 * HEAD_ONLY_LENGTH
@@ -1,85 +1,85 @@
1
- """Live link between the open figure editor and an MCP client or the
2
- qtpy_ai_sidecar chat dock.
3
-
4
- ``start_live_session(window)`` serves the open document on 127.0.0.1 (bearer
5
- token in ``connection.json``); ``python -m pyfigures.assistant.live_mcp`` is
6
- the stdio MCP server that forwards to it. The chat dock itself is the separate
7
- ``qtpy_ai_sidecar`` package (optional): ``attach_sidecar(window)`` docks it
8
- when it is installed.
9
- """
10
- from __future__ import annotations
11
-
12
- import os
13
- import sys
14
- from pathlib import Path
15
-
16
-
17
- def runtime_dir() -> Path:
18
- """Connection descriptor, recovery copies and transaction workspaces:
19
- ``PYFIGURES_LIVE_RUNTIME`` if set, else the user's app-data folder
20
- (never the repository, never the figure's folder)."""
21
- override = os.environ.get("PYFIGURES_LIVE_RUNTIME")
22
- if override:
23
- path = Path(override)
24
- elif sys.platform == "win32":
25
- path = Path(os.environ.get("LOCALAPPDATA") or Path.home() / "AppData" / "Local") / "PyFigures" / "assistant"
26
- elif sys.platform == "darwin":
27
- path = Path.home() / "Library" / "Application Support" / "PyFigures" / "assistant"
28
- else:
29
- path = Path(os.environ.get("XDG_DATA_HOME") or Path.home() / ".local" / "share") / "PyFigures" / "assistant"
30
- path.mkdir(parents=True, exist_ok=True)
31
- return path
32
-
33
-
34
- def descriptor_path() -> Path:
35
- return runtime_dir() / "connection.json"
36
-
37
-
38
- def sidecar_available() -> bool:
39
- if not ai_features_enabled():
40
- return False
41
- try:
42
- import qtpy_ai_sidecar # noqa: F401
43
- except Exception:
44
- return False
45
- return True
46
-
47
-
48
- def bundled_app_kind():
49
- """'standard', 'no_ai' or 'web_chat': what pyfigures.spec wrote into this
50
- standalone app (pyfigures/app_kind.txt). None when not an app, or one
51
- built before 0.2.8: the executable's name then tells."""
52
- if not getattr(sys, "frozen", False):
53
- return None
54
- try:
55
- return (Path(sys._MEIPASS) / "pyfigures" / "app_kind.txt").read_text(encoding="utf-8").strip() or None
56
- except (OSError, AttributeError, TypeError):
57
- return None
58
-
59
-
60
- def is_no_ai_app(executable) -> bool:
61
- """The 'PyFigures NoAI' standalone app: by what the build wrote into
62
- it (a renamed executable stays what it is), else by its name."""
63
- if executable == sys.executable:
64
- kind = bundled_app_kind()
65
- if kind:
66
- return kind == "no_ai"
67
- name = os.path.basename(executable).lower().replace(" ", "").replace("-", "").replace("_", "")
68
- return "noai" in name
69
-
70
-
71
- def ai_features_enabled() -> bool:
72
- """False in the no-AI install (``pip install pyfigures-noai``: no chat
73
- sidebar package, and the chat / MCP entries hidden) or with
74
- PYFIGURES_NO_AI=1."""
75
- if os.environ.get("PYFIGURES_NO_AI") == "1":
76
- return False
77
- if getattr(sys, "frozen", False):
78
- # the "PyFigures NoAI" app (pyfigures.spec with PYFIGURES_NO_AI=1)
79
- return not is_no_ai_app(sys.executable)
80
- import importlib.metadata as md
81
- try:
82
- md.distribution("pyfigures-noai")
83
- except md.PackageNotFoundError:
84
- return True
85
- return False
1
+ """Live link between the open figure editor and an MCP client or the
2
+ qtpy_ai_sidecar chat dock.
3
+
4
+ ``start_live_session(window)`` serves the open document on 127.0.0.1 (bearer
5
+ token in ``connection.json``); ``python -m pyfigures.assistant.live_mcp`` is
6
+ the stdio MCP server that forwards to it. The chat dock itself is the separate
7
+ ``qtpy_ai_sidecar`` package (optional): ``attach_sidecar(window)`` docks it
8
+ when it is installed.
9
+ """
10
+ from __future__ import annotations
11
+
12
+ import os
13
+ import sys
14
+ from pathlib import Path
15
+
16
+
17
+ def runtime_dir() -> Path:
18
+ """Connection descriptor, recovery copies and transaction workspaces:
19
+ ``PYFIGURES_LIVE_RUNTIME`` if set, else the user's app-data folder
20
+ (never the repository, never the figure's folder)."""
21
+ override = os.environ.get("PYFIGURES_LIVE_RUNTIME")
22
+ if override:
23
+ path = Path(override)
24
+ elif sys.platform == "win32":
25
+ path = Path(os.environ.get("LOCALAPPDATA") or Path.home() / "AppData" / "Local") / "PyFigures" / "assistant"
26
+ elif sys.platform == "darwin":
27
+ path = Path.home() / "Library" / "Application Support" / "PyFigures" / "assistant"
28
+ else:
29
+ path = Path(os.environ.get("XDG_DATA_HOME") or Path.home() / ".local" / "share") / "PyFigures" / "assistant"
30
+ path.mkdir(parents=True, exist_ok=True)
31
+ return path
32
+
33
+
34
+ def descriptor_path() -> Path:
35
+ return runtime_dir() / "connection.json"
36
+
37
+
38
+ def sidecar_available() -> bool:
39
+ if not ai_features_enabled():
40
+ return False
41
+ try:
42
+ import qtpy_ai_sidecar # noqa: F401
43
+ except Exception:
44
+ return False
45
+ return True
46
+
47
+
48
+ def bundled_app_kind():
49
+ """'standard', 'no_ai' or 'web_chat': what pyfigures.spec wrote into this
50
+ standalone app (pyfigures/app_kind.txt). None when not an app, or one
51
+ built before 0.2.8: the executable's name then tells."""
52
+ if not getattr(sys, "frozen", False):
53
+ return None
54
+ try:
55
+ return (Path(sys._MEIPASS) / "pyfigures" / "app_kind.txt").read_text(encoding="utf-8").strip() or None
56
+ except (OSError, AttributeError, TypeError):
57
+ return None
58
+
59
+
60
+ def is_no_ai_app(executable) -> bool:
61
+ """The 'PyFigures NoAI' standalone app: by what the build wrote into
62
+ it (a renamed executable stays what it is), else by its name."""
63
+ if executable == sys.executable:
64
+ kind = bundled_app_kind()
65
+ if kind:
66
+ return kind == "no_ai"
67
+ name = os.path.basename(executable).lower().replace(" ", "").replace("-", "").replace("_", "")
68
+ return "noai" in name
69
+
70
+
71
+ def ai_features_enabled() -> bool:
72
+ """False in the no-AI install (``pip install pyfigures-noai``: no chat
73
+ sidebar package, and the chat / MCP entries hidden) or with
74
+ PYFIGURES_NO_AI=1."""
75
+ if os.environ.get("PYFIGURES_NO_AI") == "1":
76
+ return False
77
+ if getattr(sys, "frozen", False):
78
+ # the "PyFigures NoAI" app (pyfigures.spec with PYFIGURES_NO_AI=1)
79
+ return not is_no_ai_app(sys.executable)
80
+ import importlib.metadata as md
81
+ try:
82
+ md.distribution("pyfigures-noai")
83
+ except md.PackageNotFoundError:
84
+ return True
85
+ return False