Tk frame: how to deactivate internal handler for expose events?
<p>I want to draw into a Tk 8.6 <code>frame</code> using Cairo C/X11 code. I found that I could prevent the frame from redrawing itself in case of Expose events (e.g. window size changes) by passing <code>-background ""</code> as option to the <code>frame</code> (so basically the <code>frame</code> doesn't know what to redraw). Two questions:</p>

<ul>
<li><p>Is there a better way to tell a <code>frame</code> to not redraw itself but to leave it to somebody else?</p></li>
<li><p>Can I replace Tk's internal event handlers (for Expose etc.) by my own on the C level? (At the moment I'm doing it on the Tcl level by <code>bind $frame &lt;Expose&gt; "myExposeHandler..."</code>.)</p></li>
</ul>

<p>Thanks for your help! </p>

<p>(The <code>-container yes</code> option seems to have no effect, btw.)</p>