Skip to content

Commit

Permalink
bump version to v0.7.5
Browse files Browse the repository at this point in the history
  • Loading branch information
hanjinliu committed Aug 25, 2023
1 parent cefcf15 commit e34c79c
Show file tree
Hide file tree
Showing 186 changed files with 15,065 additions and 3,241 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: 92e5c2c2eaffaf42e1696f1620bbf289
config: dd915c81344e33e628bdba94522c6f9c
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file added 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 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 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.
14 changes: 9 additions & 5 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.4 documentation</title>
<title>Overview: module code &mdash; magic-class 0.7.5 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,9 +12,8 @@
<![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 @@ -32,7 +31,7 @@
magic-class
</a>
<div class="version">
0.7.4
0.7.5
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
Expand Down Expand Up @@ -85,6 +84,7 @@ <h1>All modules for which code is available</h1>
<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>
<li><a href="magicclass/ext/dask/progress.html">magicclass.ext.dask.progress</a></li>
Expand Down Expand Up @@ -137,8 +137,11 @@ <h1>All modules for which code is available</h1>
<li><a href="magicclass/types/_path.html">magicclass.types._path</a></li>
<li><a href="magicclass/types/_union.html">magicclass.types._union</a></li>
<li><a href="magicclass/undo.html">magicclass.undo</a></li>
<li><a href="magicclass/utils/_functions.html">magicclass.utils._functions</a></li>
<li><a href="magicclass/utils/qt.html">magicclass.utils.qt</a></li>
<li><a href="magicclass/utils/qthreading.html">magicclass.utils.qthreading</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/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>
<li><a href="magicclass/widgets/codeedit.html">magicclass.widgets.codeedit</a></li>
Expand All @@ -162,6 +165,7 @@ <h1>All modules for which code is available</h1>
<li><a href="magicclass/wrappers/_confirm.html">magicclass.wrappers._confirm</a></li>
<li><a href="magicclass/wrappers/_misc.html">magicclass.wrappers._misc</a></li>
<li><a href="magicclass/wrappers/_preview.html">magicclass.wrappers._preview</a></li>
<li><a href="magicgui/signature.html">magicgui.signature</a></li>
<li><a href="psygnal/_signal.html">psygnal._signal</a></li>
</ul>

Expand Down
113 changes: 97 additions & 16 deletions docs/_modules/magicclass/_gui/_base.html

Large diffs are not rendered by default.

67 changes: 50 additions & 17 deletions docs/_modules/magicclass/_gui/_gui_modes.html

Large diffs are not rendered by default.

406 changes: 406 additions & 0 deletions docs/_modules/magicclass/box/_fields.html

Large diffs are not rendered by default.

38 changes: 30 additions & 8 deletions docs/_modules/magicclass/command_palette.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.command_palette &mdash; magic-class 0.7.4 documentation</title>
<title>magicclass.command_palette &mdash; magic-class 0.7.5 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,9 +12,8 @@
<![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 @@ -32,7 +31,7 @@
magic-class
</a>
<div class="version">
0.7.4
0.7.5
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">
Expand Down Expand Up @@ -88,8 +87,8 @@ <h1>Source code for magicclass.command_palette</h1><div class="highlight"><pre>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">TYPE_CHECKING</span><span class="p">,</span> <span class="n">Callable</span><span class="p">,</span> <span class="n">Iterable</span>
<span class="kn">from</span> <span class="nn">typing_extensions</span> <span class="kn">import</span> <span class="n">Literal</span>
<span class="kn">from</span> <span class="nn">qt_command_palette</span> <span class="kn">import</span> <span class="n">get_palette</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">magicclass._gui</span> <span class="kn">import</span> <span class="n">BaseGui</span>
<span class="kn">from</span> <span class="nn">magicclass._gui.class_gui</span> <span class="kn">import</span> <span class="n">ClassGuiBase</span>
<span class="kn">from</span> <span class="nn">magicclass._gui.mgui_ext</span> <span class="kn">import</span> <span class="n">Clickable</span><span class="p">,</span> <span class="n">is_clickable</span>

<span class="k">if</span> <span class="n">TYPE_CHECKING</span><span class="p">:</span>
Expand All @@ -101,6 +100,9 @@ <h1>Source code for magicclass.command_palette</h1><div class="highlight"><pre>
<div class="viewcode-block" id="exec_command_palette"><a class="viewcode-back" href="../../apidoc/magicclass.html#magicclass.command_palette.exec_command_palette">[docs]</a><span class="k">def</span> <span class="nf">exec_command_palette</span><span class="p">(</span>
<span class="n">gui</span><span class="p">:</span> <span class="n">BaseGui</span><span class="p">,</span>
<span class="n">alignment</span><span class="p">:</span> <span class="n">Literal</span><span class="p">[</span><span class="s2">&quot;parent&quot;</span><span class="p">,</span> <span class="s2">&quot;screen&quot;</span><span class="p">]</span> <span class="o">=</span> <span class="s2">&quot;parent&quot;</span><span class="p">,</span>
<span class="n">title</span><span class="p">:</span> <span class="n">Callable</span><span class="p">[[</span><span class="n">Widget</span><span class="p">,</span> <span class="n">Clickable</span><span class="p">],</span> <span class="nb">str</span><span class="p">]</span> <span class="o">|</span> <span class="kc">None</span> <span class="o">=</span> <span class="kc">None</span><span class="p">,</span>
<span class="n">desc</span><span class="p">:</span> <span class="n">Callable</span><span class="p">[[</span><span class="n">Widget</span><span class="p">,</span> <span class="n">Clickable</span><span class="p">],</span> <span class="nb">str</span><span class="p">]</span> <span class="o">|</span> <span class="kc">None</span> <span class="o">=</span> <span class="kc">None</span><span class="p">,</span>
<span class="nb">filter</span><span class="p">:</span> <span class="n">Callable</span><span class="p">[[</span><span class="n">Widget</span><span class="p">,</span> <span class="n">Clickable</span><span class="p">],</span> <span class="nb">str</span><span class="p">]</span> <span class="o">|</span> <span class="kc">None</span> <span class="o">=</span> <span class="kc">None</span><span class="p">,</span>
<span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Register all the methods available from GUI to the command palette.</span>
Expand All @@ -121,23 +123,43 @@ <h1>Source code for magicclass.command_palette</h1><div class="highlight"><pre>
<span class="sd"> Magic-class instance.</span>
<span class="sd"> alignment : &quot;parent&quot; or &quot;screen&quot;, default is &quot;parent&quot;</span>
<span class="sd"> How to align the command palette.</span>
<span class="sd"> title : callable, optional</span>
<span class="sd"> Formatter function for the title of each command. The function should</span>
<span class="sd"> take two arguments. For a command corresponding to a button, the first</span>
<span class="sd"> argument is the parent magic-class instance, and the second argument</span>
<span class="sd"> is the button widget itself.</span>
<span class="sd"> desc : callable, optional</span>
<span class="sd"> Formatter function for the description of each command. The function</span>
<span class="sd"> takes the same arguments as `title`.</span>
<span class="sd"> filter : callable, optional</span>
<span class="sd"> Filter function for the commands. The function should take the same</span>
<span class="sd"> arguments as `title`. If the function returns False, the command will</span>
<span class="sd"> not be registered.</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="n">_id</span> <span class="o">=</span> <span class="nb">id</span><span class="p">(</span><span class="n">gui</span><span class="p">)</span>
<span class="k">if</span> <span class="n">_id</span> <span class="ow">in</span> <span class="n">_PALETTES</span><span class="p">:</span>
<span class="k">return</span> <span class="n">_PALETTES</span><span class="p">[</span><span class="n">_id</span><span class="p">]</span><span class="o">.</span><span class="n">show_widget</span><span class="p">(</span><span class="n">gui</span><span class="o">.</span><span class="n">native</span><span class="p">)</span>
<span class="n">name</span> <span class="o">=</span> <span class="sa">f</span><span class="s2">&quot;magicclass-</span><span class="si">{</span><span class="nb">id</span><span class="p">(</span><span class="n">gui</span><span class="p">)</span><span class="si">}</span><span class="s2">&quot;</span>
<span class="n">palette</span> <span class="o">=</span> <span class="n">get_palette</span><span class="p">(</span><span class="n">name</span><span class="p">,</span> <span class="n">alignment</span><span class="o">=</span><span class="n">alignment</span><span class="p">)</span>

<span class="k">if</span> <span class="n">title</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="n">title</span> <span class="o">=</span> <span class="k">lambda</span> <span class="n">mcls</span><span class="p">,</span> <span class="n">btn</span><span class="p">:</span> <span class="nb">type</span><span class="p">(</span><span class="n">mcls</span><span class="p">)</span><span class="o">.</span><span class="vm">__qualname__</span>
<span class="k">if</span> <span class="n">desc</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="n">desc</span> <span class="o">=</span> <span class="k">lambda</span> <span class="n">mcls</span><span class="p">,</span> <span class="n">btn</span><span class="p">:</span> <span class="n">btn</span><span class="o">.</span><span class="n">text</span>
<span class="k">if</span> <span class="nb">filter</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="nb">filter</span> <span class="o">=</span> <span class="k">lambda</span> <span class="n">mcls</span><span class="p">,</span> <span class="n">btn</span><span class="p">:</span> <span class="kc">True</span>

<span class="n">processed</span><span class="p">:</span> <span class="nb">set</span><span class="p">[</span><span class="nb">int</span><span class="p">]</span> <span class="o">=</span> <span class="nb">set</span><span class="p">()</span>
<span class="k">for</span> <span class="n">parent</span><span class="p">,</span> <span class="n">wdt</span> <span class="ow">in</span> <span class="n">_iter_executable</span><span class="p">(</span><span class="n">gui</span><span class="p">):</span>
<span class="n">_id</span> <span class="o">=</span> <span class="nb">id</span><span class="p">(</span><span class="n">wdt</span><span class="p">)</span>
<span class="k">if</span> <span class="n">_id</span> <span class="ow">in</span> <span class="n">processed</span><span class="p">:</span>
<span class="k">continue</span>
<span class="n">_qualname</span> <span class="o">=</span> <span class="nb">type</span><span class="p">(</span><span class="n">parent</span><span class="p">)</span><span class="o">.</span><span class="vm">__qualname__</span>
<span class="k">if</span> <span class="ow">not</span> <span class="nb">filter</span><span class="p">(</span><span class="n">parent</span><span class="p">,</span> <span class="n">wdt</span><span class="p">):</span>
<span class="k">continue</span>
<span class="n">palette</span><span class="o">.</span><span class="n">register</span><span class="p">(</span>
<span class="n">_define_command</span><span class="p">(</span><span class="n">wdt</span><span class="o">.</span><span class="n">changed</span><span class="o">.</span><span class="n">emit</span><span class="p">),</span>
<span class="n">title</span><span class="o">=</span><span class="n">_qualname</span><span class="p">,</span>
<span class="n">desc</span><span class="o">=</span><span class="n">wdt</span><span class="o">.</span><span class="n">text</span><span class="p">,</span>
<span class="n">title</span><span class="o">=</span><span class="n">title</span><span class="p">(</span><span class="n">parent</span><span class="p">,</span> <span class="n">wdt</span><span class="p">),</span>
<span class="n">desc</span><span class="o">=</span><span class="n">desc</span><span class="p">(</span><span class="n">parent</span><span class="p">,</span> <span class="n">wdt</span><span class="p">),</span>
<span class="n">when</span><span class="o">=</span><span class="n">_define_when</span><span class="p">(</span><span class="n">wdt</span><span class="p">,</span> <span class="n">parent</span><span class="p">),</span>
<span class="p">)</span>
<span class="n">processed</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">_id</span><span class="p">)</span>
Expand Down
Loading

0 comments on commit e34c79c

Please sign in to comment.