lass="Keyword">proc</span> <span class="Identifier">handleevent</span><span class="Punctuation">(</span><span class="Identifier">e</span><span class="Punctuation">:</span> <span class="Identifier">EventArgs</span><span class="Punctuation">)</span> <span class="Operator">=</span>
    <span class="Identifier">echo</span><span class="Punctuation">(</span><span class="StringLit">&quot;Handled!&quot;</span><span class="Punctuation">)</span>

<span class="Comment"># Python way</span>
<span class="Identifier">ee</