You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: edifice.html
+8-3Lines changed: 8 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -554,11 +554,16 @@ <h2>Declaring Element Trees<a class="headerlink" href="#declaring-element-trees"
554
554
which has child Elements representing different parts of your application.</p>
555
555
<sectionid="dynamic-rendering">
556
556
<h3>Dynamic Rendering<aclass="headerlink" href="#dynamic-rendering" title="Link to this heading">#</a></h3>
557
-
<p>For dynamism, use conditions and loops in your <aclass="reference internal" href="stubs/edifice.component.html#edifice.component" title="edifice.component"><codeclass="xref py py-func docutils literal notranslate"><spanclass="pre">@component</span></code></a>
558
-
render function.
559
-
The conditions and loops can depend on <strong>props</strong> or <strong>state</strong>. For example,
The control flow statements can depend on <strong>props</strong> or <strong>state</strong>. For example,
560
561
this <aclass="reference internal" href="stubs/edifice.component.html#edifice.component" title="edifice.component"><codeclass="xref py py-func docutils literal notranslate"><spanclass="pre">@component</span></code></a> will render input fields only while
561
562
the <strong>props</strong> indicate that they are wanted.</p>
563
+
<ulclass="simple">
564
+
<li><p>When the <codeclass="code docutils literal notranslate"><spanclass="pre">want_username</span></code><strong>prop</strong> becomes <codeclass="code docutils literal notranslate"><spanclass="pre">True</span></code> then the entire username subtree will be added.</p></li>
565
+
<li><p>When the <codeclass="code docutils literal notranslate"><spanclass="pre">want_username</span></code><strong>prop</strong> becomes <codeclass="code docutils literal notranslate"><spanclass="pre">False</span></code> then the entire username subtree will be removed.</p></li>
Copy file name to clipboardExpand all lines: run_subprocess_with_callback.html
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -591,6 +591,12 @@ <h2>PyInstaller<a class="headerlink" href="#pyinstaller" title="Link to this hea
591
591
<aclass="reference external" href="https://pyinstaller.org/en/stable/common-issues-and-pitfalls.html#when-to-call-multiprocessing-freeze-support">before the __main__ imports</a>
592
592
so that the spawn Process starts up faster.</p>
593
593
</section>
594
+
<sectionid="independence">
595
+
<h2>Independence<aclass="headerlink" href="#independence" title="Link to this heading">#</a></h2>
596
+
<p>This <aclass="reference internal" href="#edifice.run_subprocess_with_callback" title="edifice.run_subprocess_with_callback"><codeclass="xref py py-func docutils literal notranslate"><spanclass="pre">run_subprocess_with_callback()</span></code></a> module depends only on the
597
+
Python standard library so this module file can be copied and pasted into
598
+
another project without depending on the Edifice package.</p>
0 commit comments