Tkinter Text Widget Background Color

2011-02-22 Thread Sathish S
Hi Ppl, I'm using the Tkinter Text Widget in my user interface. I'm trying to create a blinking effect for this Text Widget. I saw from the documentation I can set the color if the widget when I create it. x=Text(root,bg='#CFF') However, I couldn't find any property or function that set's the

Re: Tkinter Text Widget Background Color

2011-02-22 Thread Peter Otten
Sathish S wrote: Hi Ppl, I'm using the Tkinter Text Widget in my user interface. I'm trying to create a blinking effect for this Text Widget. I saw from the documentation I can set the color if the widget when I create it. x=Text(root,bg='#CFF') However, I couldn't find any property

Re: Tkinter Text Widget Background Color

2011-02-22 Thread Terry Reedy
On 2/22/2011 6:50 AM, Peter Otten wrote: import Tkinter as tk from itertools import cycle root = tk.Tk() text = tk.Text(root, font=(Helvetica, 70)) text.pack() text.insert(tk.END, Hello, geocities) text.tag_add(initial, 1.0, 1.1) text.tag_add(initial, 1.7, 1.8) colors = cycle(red yellow

Re: Tkinter Text Widget Background Color

2011-02-22 Thread Jeff Hobbs
On Feb 22, 8:48 am, Terry Reedy tjre...@udel.edu wrote: On 2/22/2011 6:50 AM, Peter Otten wrote: import Tkinter as tk from itertools import cycle root = tk.Tk() text = tk.Text(root, font=(Helvetica, 70)) text.pack() text.insert(tk.END, Hello, geocities) text.tag_add(initial, 1.0,

Re: Tkinter Text Widget Background Color

2011-02-22 Thread Peter Otten
Terry Reedy wrote: On 2/22/2011 6:50 AM, Peter Otten wrote: import Tkinter as tk from itertools import cycle root = tk.Tk() text = tk.Text(root, font=(Helvetica, 70)) text.pack() text.insert(tk.END, Hello, geocities) text.tag_add(initial, 1.0, 1.1) text.tag_add(initial, 1.7, 1.8)

Re: Tkinter Text Widget Background Color

2011-02-22 Thread Sathish S
Jeff, Thanks a lot. It worked great for me as well. Thanks, Sathish On Tue, Feb 22, 2011 at 10:28 PM, Jeff Hobbs jeff.ho...@gmail.com wrote: On Feb 22, 8:48 am, Terry Reedy tjre...@udel.edu wrote: On 2/22/2011 6:50 AM, Peter Otten wrote: import Tkinter as tk from itertools import

Re: Tkinter Text Widget Background Color

2011-02-22 Thread Sathish S
Oops, i got the wrong person. Thanks Peter. I was able to achieve the blinking functionality. Thanks, Sathish On Tue, Feb 22, 2011 at 10:44 PM, Peter Otten __pete...@web.de wrote: Terry Reedy wrote: On 2/22/2011 6:50 AM, Peter Otten wrote: import Tkinter as tk from itertools import