[PYGTK] Insert Backspace into text widget?
Riccardo Attilio Galli
riccardo_cut-me at cut.me.sideralis.net
Mon May 17 18:00:26 EDT 2004
On Mon, 17 May 2004 12:58:19 +0000, Dennis Craven wrote:
> 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
I think you're looking for
delete(start, end)
where start and end should be iters.
Ciao,
Riccardo
--
-=Riccardo Galli=-
_,e.
s~ ``
~@. ideralis Programs
. ol
`**~ http://www.sideralis.net
More information about the Python-list
mailing list