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
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
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
I figured it out. Thanks anyway :-)
___
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss
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
19 matches
Mail list logo