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 itertool

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 wrote: > On Feb 22, 8:48 am, Terry Reedy wrote: > > On 2/22/2011 6:50 AM, Peter Otten wrote: > > > > > import Tkinter as tk > > > from itertools import cycle > > > > > root = tk.T

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.ta

Re: Tkinter Text Widget Background Color

2011-02-22 Thread Jeff Hobbs
On Feb 22, 8:48 am, 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

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("

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 pr

Re: Tkinter Text widget get()

2008-07-05 Thread John McMoangle
> Hey guys. I am having trouble understanding the get() method from > the Tkinter Text() widget. It isn't like the entry.get() one I am > used to. I know you have to put tags in, or at least I read. I > tried this but it didn't work. I think I was putting the tags in > wrong but I am not su

Re: Tkinter text widget

2007-10-08 Thread goldtech
After some Google searching I found "ScrolledText", this does what I want :^) from Tkinter import * from ScrolledText import ScrolledText root = Tk() text = ScrolledText(root, font=("Courier")) ScrolledText text.pack() i='123456789abcdefghijklmnopqrstuvwxyz\n' for x in range(30): text.insert(

Re: Tkinter text widget

2007-10-08 Thread goldtech
On Oct 7, 11:00 am, Simon Forman <[EMAIL PROTECTED]> wrote: > On Oct 6, 11:18 pm, goldtech <[EMAIL PROTECTED]> wrote: > > > > > I thought the "DISABLED" made it so I could not edit it. But it also > > makes it so I can not scroll down. If you make the window smaller than > > the content then try to

Re: Tkinter text widget

2007-10-07 Thread Simon Forman
On Oct 6, 11:18 pm, goldtech <[EMAIL PROTECTED]> wrote: > I thought the "DISABLED" made it so I could not edit it. But it also > makes it so I can not scroll down. If you make the window smaller than > the content then try to put a cursor in there to use up/down arrow you > can't. > > What I want i

Re: Tkinter text widget

2007-10-07 Thread goldtech
> You can scroll, but you can't see the cursor. Use > > for x in range(30): > text.insert(END, "%3d " % x + i) > > to check. > > ED I tried it w/the line numbers. On my system I see 0-23. But there is no way to scroll. Still the same result. -- http://mail.python.org/mailman/listinfo/pytho

Re: Tkinter text widget

2007-10-07 Thread ezd
On Oct 6, 11:18 pm, goldtech <[EMAIL PROTECTED]> wrote: > I thought the "DISABLED" made it so I could not edit it. But it also > makes it so I can not scroll down. If you make the window smaller than > the content then try to put a cursor in there to use up/down arrow you > can't. > > What I want i

Re: tkinter text widget question

2005-08-21 Thread rafi
William Gill wrote: > The tkinter text widget uses indexes to identify row:column offsets > within the text, but it seems counter intuitive to have to convert row > and column integers to a string like "0.1'. It's great that index can > take a string, but what about looping through rows and col

Re: tkinter text widget question

2005-08-21 Thread William Gill
rafi wrote: > William Gill wrote: > >> The tkinter text widget uses indexes to identify row:column offsets >> within the text, but it seems counter intuitive to have to convert row >> and column integers to a string like "0.1'. It's great that index can >> take a string, but what about loopi