<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">So far I've only seen this problem on a Mac. &nbsp;Do you recall if it was intermittent in your case, with the same code sometimes causing the behavior and other times not?<div><br><div><div>On May 2, 2012, at 12:48 AM, Michael O'Donnell wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi Lynn,<div><br></div><div>&nbsp; &nbsp;I do remember seeing this somewhere before, but years ago,</div><div>and I think it was on a linux box (and the same code behaved well</div><div>under Windows).</div><div><br></div><div>What OS are you on?</div>
<div><br></div><div>Is it possible to create a short bit of code that replicates</div><div>the problem and that you can send?</div><div>(this step by itslef often reveals the problem to</div><div>yourself)</div><div><br></div>
<div>Does your code do any catching of window resizing,</div><div>and on this basis of this, reformat any widgets?</div><div>(I once had a problem that in catching a window resize,</div><div>I re-arranged my panes to the new size, which in itself</div>
<div>caused the window resize event to be called).</div><div><br></div><div>Mick</div><div><br></div><div><br><div class="gmail_quote">On Wed, May 2, 2012 at 5:06 PM, Lynn Oliver <span dir="ltr">&lt;<a href="mailto:raycores@gmail.com" target="_blank">raycores@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm not sure whether to describe this as a flicker or rapid flashing; probably what is happening is that the window is being redrawn continuously as fast as possible. &nbsp;The visual effect is like a fast strobe.<br>

<br>
I don't explicitly use any pack() methods at all, but I'll take a look and see if that's a possibility.<br>
<br>
Lynn<br>
<br>
On May 1, 2012, at 7:42 PM, Emiliano Gavilan wrote:<br>
<br>
&gt; 2012/5/1 Lynn Oliver &lt;<a href="mailto:raycores@gmail.com">raycores@gmail.com</a>&gt;:<br>
&gt;&gt; I'm using python 2.7.2 with Tcl/Tk 8.5.11, and I'm using a lot of ttk themed widgets in the UI. &nbsp;The layout is a ttk.notebook with a number of frames per tab; some tabs have frames that are created/destroyed based on user selections.<br>

&gt;&gt;<br>
&gt;&gt; Occasionally when I execute the program, either within the debugger or by itself, the entire window flashes rapidly and continues until I terminate the script. &nbsp; I had noticed that certain dimensions in the frames that are dynamically replaced caused the flashing whenever I caused the frames to change, and by making small adjustments it seemed that I had eliminated the problem.<br>

&gt;&gt;<br>
&gt;&gt; However it still happens occasionally--but not repeatably on my system--and now I've gotten a report from a tester that it flashes on his system when he hasn't done anything that causes frames to be created. &nbsp;As soon as he clicks on a certain button widget the entire UI starts flashing. &nbsp;The same scenario doesn't cause it to flash on my system.<br>

&gt;&gt;<br>
&gt;&gt; Does anyone know what causes this? &nbsp;Any suggestions for tracking down and eliminating the problem?<br>
&gt;<br>
&gt; I don't know what you mean by "flashing". If you mean that the main<br>
&gt; window geometry adjusts continouosly<br>
&gt; then probably you are mixing pack() and grid() methods on the same<br>
&gt; master widget.<br>
&gt;<br>
&gt; Regards<br>
&gt; Emiliano<br>
<br>
_______________________________________________<br>
Tkinter-discuss mailing list<br>
<a href="mailto:Tkinter-discuss@python.org">Tkinter-discuss@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/tkinter-discuss" target="_blank">http://mail.python.org/mailman/listinfo/tkinter-discuss</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><span><br></span></div><span>Not sent from my iPhone</span><br>
</div>
</blockquote></div><br></div></body></html>