[PYGTK] Insert Backspace into text widget?

Dennis Craven arker at newton.astro.ca
Mon May 17 08:58:19 EDT 2004


On Mon, 17 May 2004 08:27:22 -0400, Peter Hansen wrote:

> What exactly do you expect to see when you insert a backspace
> into the buffer?  (Backspace is a control character, so it
> is not normally "inserted into a buffer" unless you are
> actually trying to display it in some way.  Are you expecting
> it to move the insertion point backwards one position, or what?)

What you say makes sense. And yes, that is what I'm trying to do. I want
to move the insertion point backwards one position, deleting the character
that was at that position. Just like pressing the backspace key.

Maybe the insert(iter, text) function is not the answer I'm looking for...
Do you know of a way to accomplish this?

Thanks,
~djc



More information about the Python-list mailing list