<div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="k">def</span> <span class="nf">modal_callback</span><span class="p">(</span><span class="n">val</span><span class="p">):</span>
<span class="go">    print(&quot;Modal Dialog Returned&quot;, val)</span>
</pre></div>
</div>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">Modal</span><span class="p">(</span><span class="n">body</span