[Sugar-devel] [API proposal] Source editor and widget

Lucian Branescu lucian.branescu at gmail.com
Mon Jul 13 13:09:17 EDT 2009


I've attached a file with a SourceView class.

I'll try to write up a FilesView class as well, since 3 of the 4
aforementioned use cases do something like this.

2009/7/13 Tomeu Vizoso <tomeu at sugarlabs.org>:
> On Mon, Jul 13, 2009 at 18:09, Lucian Branescu<lucian.branescu at gmail.com> wrote:
>> I'm proposing the addition of sugar.graphics.sourceedit.SourceView. It
>> would be similar to what can be found in jarabe.view.viewsource. Exact
>> names of classes and/or module are up for debate.
>
> May be better if you first code your new stuff and then we discuss
> about merging it in the sugar-toolkit? viewsource.py doesn't add too
> much around gtksourceview2.View itself, so you may end up with more
> differences than similarities with viewsource.py.
>
> Regards,
>
> Tomeu
>
>> I'm also thinking of adding a FileView class in there, but I'm not
>> sure about it.
>>
>>
>> I've already seen almost the exact same code in Pippy and
>> viewsource.py; now I'm writing almost the same code in my branch of
>> Browse and it could be a base for the proposed Clipboard text editor
>> (http://wiki.sugarlabs.org/go/Features/Edit-panel-on-Frame). Thus, I
>> believe it's a common enough need.
>> _______________________________________________
>> Sugar-devel mailing list
>> Sugar-devel at lists.sugarlabs.org
>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sourceedit.py
Type: text/x-python-script
Size: 3170 bytes
Desc: not available
Url : http://lists.sugarlabs.org/archive/sugar-devel/attachments/20090713/41c3868c/attachment-0001.bin 


More information about the Sugar-devel mailing list