Skip to content

Commit

Permalink
bump version to 0.7.6
Browse files Browse the repository at this point in the history
  • Loading branch information
hanjinliu committed Oct 31, 2023
1 parent 619de3b commit 0b9eedc
Show file tree
Hide file tree
Showing 177 changed files with 4,462 additions and 6,294 deletions.
2 changes: 1 addition & 1 deletion docs/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: dd915c81344e33e628bdba94522c6f9c
config: d777bb48dc7cc79af2713daf5aabcded
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file modified docs/.doctrees/apidoc/magicclass.box.doctree
Binary file not shown.
Binary file modified docs/.doctrees/apidoc/magicclass.doctree
Binary file not shown.
Binary file modified docs/.doctrees/apidoc/magicclass.ext.dask.doctree
Binary file not shown.
Binary file modified docs/.doctrees/apidoc/magicclass.ext.doctree
Binary file not shown.
Binary file modified docs/.doctrees/apidoc/magicclass.ext.napari.doctree
Binary file not shown.
Binary file modified docs/.doctrees/apidoc/magicclass.ext.pandas.doctree
Binary file not shown.
Binary file modified docs/.doctrees/apidoc/magicclass.ext.pandas.tests.doctree
Binary file not shown.
Binary file modified docs/.doctrees/apidoc/magicclass.ext.polars.doctree
Binary file not shown.
Binary file modified docs/.doctrees/apidoc/magicclass.ext.polars.tests.doctree
Binary file not shown.
Binary file modified docs/.doctrees/apidoc/magicclass.ext.pyqtgraph.doctree
Binary file not shown.
Binary file modified docs/.doctrees/apidoc/magicclass.ext.pyqtgraph.tests.doctree
Binary file not shown.
Binary file modified docs/.doctrees/apidoc/magicclass.ext.qtconsole.doctree
Binary file not shown.
Binary file modified docs/.doctrees/apidoc/magicclass.ext.vispy.doctree
Binary file not shown.
Binary file modified docs/.doctrees/apidoc/magicclass.ext.vispy.tests.doctree
Binary file not shown.
Binary file modified docs/.doctrees/apidoc/magicclass.ext.vtk.doctree
Binary file not shown.
Binary file modified docs/.doctrees/apidoc/magicclass.fields.doctree
Binary file not shown.
Binary file modified docs/.doctrees/apidoc/magicclass.functools.doctree
Binary file not shown.
Binary file modified docs/.doctrees/apidoc/magicclass.logging.doctree
Binary file not shown.
Binary file modified docs/.doctrees/apidoc/magicclass.stylesheets.doctree
Binary file not shown.
Binary file modified docs/.doctrees/apidoc/magicclass.testing.doctree
Binary file not shown.
Binary file modified docs/.doctrees/apidoc/magicclass.types.doctree
Binary file not shown.
Binary file modified docs/.doctrees/apidoc/magicclass.utils.doctree
Binary file not shown.
Binary file modified docs/.doctrees/apidoc/magicclass.utils.qthreading.doctree
Binary file not shown.
Binary file modified docs/.doctrees/apidoc/magicclass.widgets.doctree
Binary file not shown.
Binary file modified docs/.doctrees/apidoc/magicclass.widgets.pywidgets.doctree
Binary file not shown.
Binary file modified docs/.doctrees/apidoc/magicclass.widgets.tests.doctree
Binary file not shown.
Binary file modified docs/.doctrees/apidoc/magicclass.wrappers.doctree
Binary file not shown.
Binary file modified docs/.doctrees/apidoc/modules.doctree
Binary file not shown.
Binary file modified docs/.doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/.doctrees/index.doctree
Binary file not shown.
Binary file modified docs/.doctrees/main/advanced/api.doctree
Binary file not shown.
Binary file modified docs/.doctrees/main/advanced/class_inheritance.doctree
Binary file not shown.
Binary file modified docs/.doctrees/main/advanced/customize_macro.doctree
Binary file not shown.
Binary file modified docs/.doctrees/main/advanced/freewidget.doctree
Binary file not shown.
Binary file modified docs/.doctrees/main/advanced/index.doctree
Binary file not shown.
Binary file modified docs/.doctrees/main/advanced/keybinding.doctree
Binary file not shown.
Binary file modified docs/.doctrees/main/basics/index.doctree
Binary file not shown.
Binary file modified docs/.doctrees/main/basics/nest.doctree
Binary file not shown.
Binary file modified docs/.doctrees/main/basics/options.doctree
Binary file not shown.
Binary file modified docs/.doctrees/main/basics/tooltips.doctree
Binary file not shown.
Binary file modified docs/.doctrees/main/basics/use_field.doctree
Binary file not shown.
Binary file modified docs/.doctrees/main/basics/use_property.doctree
Binary file not shown.
Binary file modified docs/.doctrees/main/best_practice.doctree
Binary file not shown.
Binary file modified docs/.doctrees/main/make_better/additional_types.doctree
Binary file not shown.
Binary file modified docs/.doctrees/main/make_better/containers.doctree
Binary file not shown.
Binary file modified docs/.doctrees/main/make_better/index.doctree
Binary file not shown.
Binary file modified docs/.doctrees/main/make_better/testing.doctree
Binary file not shown.
Binary file modified docs/.doctrees/main/make_better/undo.doctree
Binary file not shown.
Binary file modified docs/.doctrees/main/make_better/use_bind.doctree
Binary file not shown.
Binary file modified docs/.doctrees/main/make_better/use_choices.doctree
Binary file not shown.
Binary file modified docs/.doctrees/main/make_better/use_confirm.doctree
Binary file not shown.
Binary file modified docs/.doctrees/main/make_better/use_functools.doctree
Binary file not shown.
Binary file modified docs/.doctrees/main/make_better/use_icon.doctree
Binary file not shown.
Binary file modified docs/.doctrees/main/make_better/use_logging.doctree
Binary file not shown.
Binary file modified docs/.doctrees/main/make_better/use_preview.doctree
Binary file not shown.
Binary file modified docs/.doctrees/main/make_better/use_setup.doctree
Binary file not shown.
Binary file modified docs/.doctrees/main/make_better/use_validator.doctree
Binary file not shown.
Binary file modified docs/.doctrees/main/make_better/use_worker.doctree
Binary file not shown.
Binary file modified docs/.doctrees/main/make_better/use_wraps.doctree
Binary file not shown.
Binary file modified docs/.doctrees/main/quick_start.doctree
Binary file not shown.
Binary file modified docs/.doctrees/main/visualization/index.doctree
Binary file not shown.
Binary file modified docs/.doctrees/main/visualization/matplotlib.doctree
Binary file not shown.
Binary file modified docs/.doctrees/main/visualization/pyqtgraph.doctree
Binary file not shown.
Binary file modified docs/.doctrees/main/visualization/vispy.doctree
Binary file not shown.
Binary file modified docs/.doctrees/main/visualization/vtk.doctree
Binary file not shown.
9 changes: 5 additions & 4 deletions docs/_modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Overview: module code &mdash; magic-class 0.7.5 documentation</title>
<title>Overview: module code &mdash; magic-class 0.7.6 documentation</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="../_static/columns.css" type="text/css" />
Expand All @@ -12,8 +12,9 @@
<![endif]-->

<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script>
<script src="../_static/jquery.js"></script>
<script src="../_static/underscore.js"></script>
<script src="../_static/doctools.js"></script>
<script src="../_static/sphinx_highlight.js"></script>
<script src="../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
Expand All @@ -31,7 +32,7 @@
magic-class
</a>
<div class="version">
0.7.5
0.7.6
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
Expand Down Expand Up @@ -83,7 +84,6 @@ <h1>All modules for which code is available</h1>
<li><a href="magicclass/_gui/_base.html">magicclass._gui._base</a></li>
<li><a href="magicclass/_gui/_gui_modes.html">magicclass._gui._gui_modes</a></li>
<li><a href="magicclass/_gui/_icon.html">magicclass._gui._icon</a></li>
<li><a href="magicclass/_gui/keybinding.html">magicclass._gui.keybinding</a></li>
<li><a href="magicclass/box/_fields.html">magicclass.box._fields</a></li>
<li><a href="magicclass/command_palette.html">magicclass.command_palette</a></li>
<li><a href="magicclass/core.html">magicclass.core</a></li>
Expand Down Expand Up @@ -141,6 +141,7 @@ <h1>All modules for which code is available</h1>
<li><a href="magicclass/utils/qt.html">magicclass.utils.qt</a></li>
<li><a href="magicclass/utils/qthreading/_callback.html">magicclass.utils.qthreading._callback</a></li>
<li><a href="magicclass/utils/qthreading/_progressbar.html">magicclass.utils.qthreading._progressbar</a></li>
<li><a href="magicclass/utils/qthreading/_to_async.html">magicclass.utils.qthreading._to_async</a></li>
<li><a href="magicclass/utils/qthreading/thread_worker.html">magicclass.utils.qthreading.thread_worker</a></li>
<li><a href="magicclass/utils/qtsignal.html">magicclass.utils.qtsignal</a></li>
<li><a href="magicclass/widgets/_union.html">magicclass.widgets._union</a></li>
Expand Down
448 changes: 223 additions & 225 deletions docs/_modules/magicclass/_gui/_base.html

Large diffs are not rendered by default.

25 changes: 16 additions & 9 deletions docs/_modules/magicclass/_gui/_gui_modes.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>magicclass._gui._gui_modes &mdash; magic-class 0.7.5 documentation</title>
<title>magicclass._gui._gui_modes &mdash; magic-class 0.7.6 documentation</title>
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../../../_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="../../../_static/columns.css" type="text/css" />
Expand All @@ -12,8 +12,9 @@
<![endif]-->

<script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script>
<script src="../../../_static/jquery.js"></script>
<script src="../../../_static/underscore.js"></script>
<script src="../../../_static/doctools.js"></script>
<script src="../../../_static/sphinx_highlight.js"></script>
<script src="../../../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
Expand All @@ -31,7 +32,7 @@
magic-class
</a>
<div class="version">
0.7.5
0.7.6
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
Expand Down Expand Up @@ -87,7 +88,7 @@ <h1>Source code for magicclass._gui._gui_modes</h1><div class="highlight"><pre>
<span class="kn">from</span> <span class="nn">enum</span> <span class="kn">import</span> <span class="n">Enum</span>
<span class="kn">from</span> <span class="nn">pathlib</span> <span class="kn">import</span> <span class="n">Path</span>
<span class="kn">import</span> <span class="nn">functools</span>

<span class="kn">from</span> <span class="nn">qtpy</span> <span class="kn">import</span> <span class="n">QtWidgets</span> <span class="k">as</span> <span class="n">QtW</span>
<span class="kn">from</span> <span class="nn">magicgui.widgets</span> <span class="kn">import</span> <span class="n">Widget</span>
<span class="kn">from</span> <span class="nn">.mgui_ext</span> <span class="kn">import</span> <span class="n">FunctionGuiPlus</span>
<span class="kn">from</span> <span class="nn">magicclass._exceptions</span> <span class="kn">import</span> <span class="n">Canceled</span>
Expand All @@ -110,6 +111,7 @@ <h1>Source code for magicclass._gui._gui_modes</h1><div class="highlight"><pre>
<span class="n">parentsub</span> <span class="o">=</span> <span class="s2">&quot;parentsub&quot;</span>

<div class="viewcode-block" id="PopUpMode.need_title_bar"><a class="viewcode-back" href="../../../apidoc/magicclass.html#magicclass.PopUpMode.need_title_bar">[docs]</a> <span class="k">def</span> <span class="nf">need_title_bar</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">bool</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Whethre the popup widget needs a custom title bar&quot;&quot;&quot;</span>
<span class="k">return</span> <span class="bp">self</span> <span class="ow">not</span> <span class="ow">in</span> <span class="p">{</span>
<span class="n">PopUpMode</span><span class="o">.</span><span class="n">popup</span><span class="p">,</span>
<span class="n">PopUpMode</span><span class="o">.</span><span class="n">dock</span><span class="p">,</span>
Expand All @@ -118,14 +120,15 @@ <h1>Source code for magicclass._gui._gui_modes</h1><div class="highlight"><pre>
<span class="p">}</span></div>

<div class="viewcode-block" id="PopUpMode.activate_magicgui"><a class="viewcode-back" href="../../../apidoc/magicclass.html#magicclass.PopUpMode.activate_magicgui">[docs]</a> <span class="k">def</span> <span class="nf">activate_magicgui</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">mgui</span><span class="p">:</span> <span class="n">FunctionGuiPlus</span><span class="p">,</span> <span class="n">parent</span><span class="p">:</span> <span class="n">Widget</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Mode specific methods to activate magicgui.&quot;&quot;&quot;</span>
<span class="k">if</span> <span class="bp">self</span> <span class="ow">not</span> <span class="ow">in</span> <span class="p">(</span>
<span class="n">PopUpMode</span><span class="o">.</span><span class="n">dock</span><span class="p">,</span>
<span class="n">PopUpMode</span><span class="o">.</span><span class="n">dialog</span><span class="p">,</span>
<span class="n">PopUpMode</span><span class="o">.</span><span class="n">parentsub</span><span class="p">,</span>
<span class="p">):</span>
<span class="n">mgui</span><span class="o">.</span><span class="n">show</span><span class="p">()</span>
<span class="k">elif</span> <span class="bp">self</span> <span class="ow">is</span> <span class="n">PopUpMode</span><span class="o">.</span><span class="n">dock</span><span class="p">:</span>
<span class="n">mgui</span><span class="o">.</span><span class="n">parent</span><span class="o">.</span><span class="n">show</span><span class="p">()</span> <span class="c1"># show dock widget</span>
<span class="n">mgui</span><span class="o">.</span><span class="n">native</span><span class="o">.</span><span class="n">parent</span><span class="p">()</span><span class="o">.</span><span class="n">show</span><span class="p">()</span> <span class="c1"># show dock widget</span>
<span class="k">elif</span> <span class="bp">self</span> <span class="ow">is</span> <span class="n">PopUpMode</span><span class="o">.</span><span class="n">parentsub</span><span class="p">:</span>
<span class="n">mgui</span><span class="o">.</span><span class="n">native</span><span class="o">.</span><span class="n">parent</span><span class="p">()</span><span class="o">.</span><span class="n">setVisible</span><span class="p">(</span><span class="kc">True</span><span class="p">)</span>
<span class="k">else</span><span class="p">:</span>
Expand All @@ -136,12 +139,13 @@ <h1>Source code for magicclass._gui._gui_modes</h1><div class="highlight"><pre>
<span class="k">pass</span></div>

<div class="viewcode-block" id="PopUpMode.connect_close_callback"><a class="viewcode-back" href="../../../apidoc/magicclass.html#magicclass.PopUpMode.connect_close_callback">[docs]</a> <span class="k">def</span> <span class="nf">connect_close_callback</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">mgui</span><span class="p">:</span> <span class="n">FunctionGuiPlus</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Connect mode specific closed callbacks to magicgui.&quot;&quot;&quot;</span>
<span class="k">if</span> <span class="bp">self</span> <span class="ow">not</span> <span class="ow">in</span> <span class="p">{</span><span class="n">PopUpMode</span><span class="o">.</span><span class="n">dock</span><span class="p">,</span> <span class="n">PopUpMode</span><span class="o">.</span><span class="n">parentsub</span><span class="p">,</span> <span class="n">PopUpMode</span><span class="o">.</span><span class="n">dialog</span><span class="p">}:</span>
<span class="n">mgui</span><span class="o">.</span><span class="n">calling</span><span class="o">.</span><span class="n">connect</span><span class="p">(</span><span class="n">mgui</span><span class="o">.</span><span class="n">hide</span><span class="p">)</span>
<span class="k">elif</span> <span class="bp">self</span> <span class="ow">in</span> <span class="p">{</span><span class="n">PopUpMode</span><span class="o">.</span><span class="n">dock</span><span class="p">,</span> <span class="n">PopUpMode</span><span class="o">.</span><span class="n">parentsub</span><span class="p">}:</span>
<span class="c1"># If FunctioGui is docked or in a subwindow, we should close</span>
<span class="c1"># the parent QDockWidget/QMdiSubwindow.</span>
<span class="n">mgui</span><span class="o">.</span><span class="n">calling</span><span class="o">.</span><span class="n">connect</span><span class="p">(</span><span class="k">lambda</span><span class="p">:</span> <span class="n">mgui</span><span class="o">.</span><span class="n">parent</span><span class="o">.</span><span class="n">hide</span><span class="p">())</span></div></div>
<span class="n">mgui</span><span class="o">.</span><span class="n">calling</span><span class="o">.</span><span class="n">connect</span><span class="p">(</span><span class="k">lambda</span><span class="p">:</span> <span class="n">mgui</span><span class="o">.</span><span class="n">native</span><span class="o">.</span><span class="n">parent</span><span class="p">()</span><span class="o">.</span><span class="n">hide</span><span class="p">())</span></div></div>


<span class="k">def</span> <span class="nf">_msgbox_raising</span><span class="p">(</span><span class="n">e</span><span class="p">:</span> <span class="ne">Exception</span><span class="p">,</span> <span class="n">parent</span><span class="p">:</span> <span class="n">Widget</span><span class="p">):</span>
Expand Down Expand Up @@ -209,12 +213,14 @@ <h1>Source code for magicclass._gui._gui_modes</h1><div class="highlight"><pre>

<span class="nd">@classmethod</span>
<span class="nd">@contextmanager</span>
<span class="k">def</span> <span class="nf">raise_with_handler</span><span class="p">(</span><span class="bp">cls</span><span class="p">,</span> <span class="n">parent</span><span class="p">:</span> <span class="n">BaseGui</span><span class="p">):</span>
<span class="k">def</span> <span class="nf">raise_with_handler</span><span class="p">(</span><span class="bp">cls</span><span class="p">,</span> <span class="n">parent</span><span class="p">:</span> <span class="n">BaseGui</span><span class="p">,</span> <span class="n">reraise</span><span class="p">:</span> <span class="nb">bool</span> <span class="o">=</span> <span class="kc">True</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Raise error with the error handler in this context.&quot;&quot;&quot;</span>
<span class="k">try</span><span class="p">:</span>
<span class="k">yield</span>
<span class="k">except</span> <span class="ne">Exception</span> <span class="k">as</span> <span class="n">e</span><span class="p">:</span>
<span class="n">parent</span><span class="o">.</span><span class="n">_error_mode</span><span class="o">.</span><span class="n">get_handler</span><span class="p">()(</span><span class="n">e</span><span class="p">,</span> <span class="n">parent</span><span class="o">=</span><span class="n">parent</span><span class="p">)</span>
<span class="k">if</span> <span class="n">reraise</span><span class="p">:</span>
<span class="k">raise</span> <span class="n">e</span>


<span class="n">ErrorModeHandlers</span> <span class="o">=</span> <span class="p">{</span>
Expand Down Expand Up @@ -243,8 +249,9 @@ <h1>Source code for magicclass._gui._gui_modes</h1><div class="highlight"><pre>
<span class="n">path</span> <span class="o">=</span> <span class="n">Path</span><span class="p">(</span><span class="n">current_tb</span><span class="o">.</span><span class="n">tb_frame</span><span class="o">.</span><span class="n">f_code</span><span class="o">.</span><span class="n">co_filename</span><span class="p">)</span><span class="o">.</span><span class="n">as_posix</span><span class="p">()</span>
<span class="k">if</span> <span class="n">path</span><span class="o">.</span><span class="n">endswith</span><span class="p">(</span>
<span class="p">(</span>
<span class="s2">&quot;magic-class/magicclass/utils/qthreading/thread_worker.py&quot;</span><span class="p">,</span>
<span class="s2">&quot;superqt/utils/_qthreading.py&quot;</span><span class="p">,</span>
<span class="s2">&quot;Lib/magic-class/magicclass/utils/qthreading/thread_worker.py&quot;</span><span class="p">,</span>
<span class="s2">&quot;Lib/superqt/utils/_qthreading.py&quot;</span><span class="p">,</span>
<span class="s2">&quot;Lib/inspect.py&quot;</span><span class="p">,</span>
<span class="p">)</span>
<span class="p">):</span>
<span class="k">pass</span>
Expand Down
Loading

0 comments on commit 0b9eedc

Please sign in to comment.