Oops, i got the wrong person.<div><br></div><div>Thanks Peter. I was able to achieve the blinking functionality. </div><div><br><div>Thanks,<br>Sathish<br>
<br><br><div class="gmail_quote">On Tue, Feb 22, 2011 at 10:44 PM, Peter Otten <span dir="ltr"><__<a href="mailto:peter__@web.de">peter__@web.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">Terry Reedy wrote:<br>
<br>
> On 2/22/2011 6:50 AM, Peter Otten wrote:<br>
</div><div class="im">>> import Tkinter as tk<br>
>> from itertools import cycle<br>
>><br>
>> root = tk.Tk()<br>
>> text = tk.Text(root, font=("Helvetica", 70))<br>
>> text.pack()<br>
>><br>
>> text.insert(tk.END, "Hello, geocities")<br>
>> text.tag_add("initial", "1.0", "1.1")<br>
>> text.tag_add("initial", "1.7", "1.8")<br>
>><br>
>> colors = cycle("red yellow blue".split())<br>
>> initial_colors = cycle("#8f8 #f08".split())<br>
>><br>
>> def switch_color():<br>
>>      # change the complete widget's background color<br>
>>      text["bg"] = next(colors)<br>
>><br>
>>      # change the background color of tagged portions<br>
>>      # of the widget's conten<br>
>>      text.tag_config("initial", background=next(initial_colors))<br>
>><br>
>>      # do it again after 300 milliseconds<br>
>>      root.after(300, switch_color)<br>
>><br>
>> # call the color-setting function manually the first time<br>
>> switch_color()<br>
>> root.mainloop()<br>
><br>
</div><div class="im">> This example is helpful to me. I am curious though why the tk window<br>
> takes up the full screen instead of being much smaller as usual for<br>
> other examples I run. Shortening or shrinking the text has no effect.<br>
<br>
</div>The text widget's intended usecase is editing text; therefore it reserves<br>
space for 80 columns and 24 lines by default. Combined with the giant font<br>
size that I specified that means that it takes a all the space it can get.<br>
If you want to (ab)use a text widget to show its content you can specify the<br>
desired size in units of character cells, e. g.<br>
<br>
text = tk.Text(root, font=("Helvetica", 70), width=16, height=1)<br>
<br>
See also<br>
<br>
<a href="http://www.tcl.tk/man/tcl8.5/TkCmd/text.htm#M-height" target="_blank">http://www.tcl.tk/man/tcl8.5/TkCmd/text.htm#M-height</a><br>
<font color="#888888"><br>
Peter<br>
</font><div><div></div><div class="h5">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</div></div></blockquote></div><br></div></div>