[pygtk] text buffer - pygtk (or source buffer - pygtksourceview buffer) column selection or block selection or rectangular selection
giuspen at gmail.com
Wed May 30 16:13:43 WST 2012
Hi, with the textmarks you can select a region (row oriented selection
comes as consequence) but to select
a column means to have multiple "start selection" marks and "end selection"
marks, the problem is that when I
set a "start selection" mark I automatically remove the previous "start
selection" mark that was set.
I don't think that I can have multiple separed selections in the same
textbuffer... am I wrong?
On Wed, May 30, 2012 at 8:43 AM, Smartboy <smartboyathome at gmail.com> wrote:
> Well, technically, the selection is just a textmark. All textmarks do is
> record a position. I guess you could do the same by activating a function
> via a gesture that tracks the mouse and simulates this using texttags
> (formatting), but by default I don't think there is a way to do that.
> On Tue, May 29, 2012 at 3:28 AM, Giuseppe Penone <giuspen at gmail.com>wrote:
>> I'm wondering if in pygtk there's a way to obtain the so called column
>> selection or block selection or rectangular selection.
>> If anybody uses geany, keeping pressed ctrl+alt while performing the
>> selection will give the idea of the result.
>> Geany is gtk2 but unfortunately uses scintilla to obtain this result (as
>> well as syntax highlighting), not gtk textbuffer or sourcebuffer.
>> pygtk mailing list pygtk at daa.com.au
>> Read the PyGTK FAQ: http://faq.pygtk.org/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pygtk