Re: Selection in Tkinter Text widget.

2006-06-03 Thread greg
Ant wrote: > Strange behaviour though (IMHO), that the selection is only shown if > the widget has focus. It's only strange if you're used to certain platforms. This is normal behaviour in the Macintosh world. One of the original Apple UI Guidelines was that there should only be one selection vis

Re: Selection in Tkinter Text widget.

2006-06-02 Thread Ant
Fredrik Lundh wrote: ... > it does, but by default, the selection is only shown for widgets that has the > key- > board focus. if you add an explicit focus_set() call, you'll see the > selection. > > Perfect! Thanks Fredrik. Strange behaviour though (IMHO), that the selection is only shown i

Re: Selection in Tkinter Text widget.

2006-06-02 Thread Fredrik Lundh
"Ant" <[EMAIL PROTECTED]> wrote: > I have been trying to select text in a Text widget programmatically. I > have been trying the following minimal example: > #= > from Tkinter import * > > def showgui(): >win = Tk() > >area = Text(win, width = 50, height = 2

Selection in Tkinter Text widget.

2006-06-02 Thread Ant
Hi all, I have been trying to select text in a Text widget programmatically. I have been trying the following minimal example: #= from Tkinter import * def showgui(): win = Tk() area = Text(win, width = 50, height = 20) area.pack() new = """Lots o