[Tkinter-discuss] Okay, this one really has me baffled --KeyboardInterrupt signal not working!

2005-04-18 Thread Jared Cohen
Well, I tried your suggestion, but no dice. The problem is that the system command I'm calling, immediately forks several other processes which actually do the work; the initial process seems to be just a dummy. But I can't get the PIDs of those child processes, so I can't kill them from inside

[Tkinter-discuss] Okay, this one really has me baffled -- KeyboardInterrupt signal not working!

2005-04-13 Thread Jared Cohen
Thanks a bunch for everybody's help with the syntax highlighting problem, but I finally got fed up with trying, so now I'm looking for a good XML parser to do the work for me ;-) Anyway, now there's a new problem. Part of my application executes a system command, captures the standard input/out

Re: [Tkinter-discuss] Here's a tough one -- dynamic, multi-line XML syntax highlighting

2005-03-28 Thread Jared Cohen
e the file. For all OTHER cases, I use expat to just re-parse that one line. So far, it seems to be working perfectly, and it's certainly much more efficient than before! Thanks anyway for the suggestions :-) Tim Jones wrote: On Mar 28, 2005, at 10:21 AM, Jared Cohen wrote: Not a bad

[Tkinter-discuss] Here's a tough one -- dynamic, multi-line XML syntax highlighting

2005-03-28 Thread Jared Cohen
Hiya. My current project is an XML editor using the Tkinter.Text widget. Using the parsing tools from xml.parsers.expat, I've managed to implement a nice system of syntax highlighting when the document is first loaded. However, I want the user to be able to edit the text, and have the highlight

[Tkinter-discuss] Re: Another problem -- deselecting individualentriesin Tix HList

2005-03-02 Thread Jared Cohen
That works perfectly! Many thanx!! :-) might be a bug in the Python binding. does the following "direct" call work as expected? widget.tk.call(widget, "selection", "clear", fromvalue, tovalue) ___ Tkinter-discuss mailing list Tkinter-discuss@python.or

[Tkinter-discuss] Re: Another problem -- deselecting individualentries in Tix HList

2005-03-02 Thread Jared Cohen
Thanks, but that didn't work. I tried the format: self.tree.hlist.selection_clear(from_=path) And I got this error message: File "/usr/lib/python2.3/lib-tk/Tix.py", line 1015, in selection_clear self.tk.call(self._w, 'selection', 'clear', *self._options(cnf, kw)) TclError: Entry "-from" not f

[Tkinter-discuss] Another problem -- deselecting individual entries in Tix HList

2005-02-28 Thread Jared Cohen
According to the documentation for the Tcl version of Tix, it's possible to use selection_clear() to deselect individual entries, as opposed to the entire selection. The documentation says the following: pathName selection clear ?from? ?to? When no extra arguments are given, deselects all of the

Re: [Tkinter-discuss] Re: Problem with Text widget's "see" method

2005-02-23 Thread Jared Cohen
Sorry, but it's for a very specific purpose; I doubt you'd get much use out of it. :-) Stewart Midwinter wrote: Jared: And whiile you're explaing to Martin what worked, can you say anything about the editor you are working on? Is it a gerneral - purpose editor for public consumption, or somethin

[Tkinter-discuss] Re: Problem with Text widget's "see" method

2005-02-23 Thread Jared Cohen
Sorry, I forgot to include the previous message text: Martin Franklin wrote: > Jared Cohen wrote: > >>> >>> >>> I see you got lots of help on the 'see' problem I just wanted to >>> point out the Text widget comes with it's own und

[Tkinter-discuss] Re: Problem with Text widget's "see" method

2005-02-23 Thread Jared Cohen
Well son of a gun! It works!! Many thanx guys, this will do quite nicely!! :-) ___ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss

[Tkinter-discuss] Re: Problem with Text widget's "see" method

2005-02-16 Thread Jared Cohen
I see you got lots of help on the 'see' problem I just wanted to point out the Text widget comes with it's own undo/redo methods as of Tk 8.4 so if you have an up to date Python & Tk you should be able to use them Thanks anyway, but the undo doesn't seem to work. It's weird, because ther

[Tkinter-discuss] Problem with Text widget's "see" method

2005-02-14 Thread Jared Cohen
Also, thanks Fredrik for that Percolator example, I'll look into that as soon as I get a chance. ___ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss

[Tkinter-discuss] Problem with Text widget's "see" method

2005-02-14 Thread Jared Cohen
Thanks guys. The mark_set() method is definitely a better way of moving the insertion point than the one I was using. But that still doesn't solve the problem with the see() method. Any ideas? ___ Tkinter-discuss mailing list Tkinter-discuss@python.org

[Tkinter-discuss] Problem with Text widget's "see" method

2005-02-14 Thread Jared Cohen
I'm building a text editor that has an Undo/Redo feature. To do this, I basically invoke a callback every time the user presses a key; the callback copies the entire contents of the Text widget to a history list. Later, if the user presses Ctrl-Z, the widget steps back through the history list,

[Tkinter-discuss] re: how to delete a toplevel window from within it?

2005-01-07 Thread Jared Cohen
I tried the following method, invoked by a button, without success # in FileEditor.py: ... def close(self): '''close the window that we live in''' self.destroy() ... but the following error is returned: AttributeError: Editor instance has no attribute 'destroy' The pr

[Tkinter-discuss] Never mind AGAIN

2005-01-07 Thread Jared Cohen
Ugh. I agonized over this puzzle for weeks, and then as SOON as I post a request for help, I suddenly find the answer on my own. Go figure.  ;-) The answer was something I'd never have expected: when I created the PanedWidget, one of the initialization options was "hull_borderwidth=1". Somehow

[Tkinter-discuss] Another, unrelated problem -- combining Tix Tree and Pmw PanedWidget

2005-01-07 Thread Jared Cohen
I've been building an application using straight Tkinter and Pmw megawidgets. Recently, I needed a collapsible tree widget, which Pmw didn't have; so I turned to Tix. Now, here's the problem. My application uses a Pmw.PanedWidget to separate the window into panes; the tree needs to be packed in

[Tkinter-discuss] Never mind

2005-01-07 Thread Jared Cohen
I figured it out. Thanks anyway :-) ___ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss

[Tkinter-discuss] Please help -- Pmw PanedWidget inside ScrolledFrame

2005-01-07 Thread Jared Cohen
I'm trying to use a Pmw.ScrolledFrame which contains a PanedWidget. But I can't get the PanedWidget to expand to fill the interior frame. It expands fine if I just grid it into the toplevel window; and when I tried gridding DIFFERENT widgets into the ScrolledFrame, they expanded just fine. So b