<divid="unreleased-message"> You are reading an old version of the documentation (v3.4.0). For the latest version see <ahref="https://matplotlib.org/stable/gallery/widgets/menu.html">https://matplotlib.org/stable/gallery/widgets/menu.html</a></div>
<pclass="last">Click <aclass="reference internal" href="#sphx-glr-download-gallery-widgets-menu-py"><spanclass="std std-ref">here</span></a> to download the full example code</p>
<spanclass="bp">self</span><spanclass="o">.</span><spanclass="n">rect</span><spanclass="o">=</span><ahref="../../api/_as_gen/matplotlib.patches.Rectangle.html#matplotlib.patches.Rectangle" title="matplotlib.patches.Rectangle" class="sphx-glr-backref-module-matplotlib-patches sphx-glr-backref-type-py-class"><spanclass="n">patches</span><spanclass="o">.</span><spanclass="n">Rectangle</span></a><spanclass="p">((</span><spanclass="mi">0</span><spanclass="p">,</span><spanclass="mi">0</span><spanclass="p">),</span><spanclass="mi">1</span><spanclass="p">,</span><spanclass="mi">1</span><spanclass="p">)</span><spanclass="c1"># Will be updated later.</span>