[Sugar-devel] Queries regarding Sugar Sharp assembly on Mono

Bert Freudenberg bert at freudenbergs.de
Mon Sep 27 14:49:58 EDT 2010


On 27.09.2010, at 20:05, Harpreet Sareen wrote:

> Hi Tomeu,
> 
> >>You can access the Telepathy API through DBus# and the Telepathy DBus spec:
> >>
> >>http://www.ndesk.org/DBusSharp
> >>http://telepathy.freedesktop.org/spec/
> >>
> 
> Thanks for your response. I came to know about developing activities for Sugar throug C# from this link.
> http://www.codeproject.com/KB/cross-platform/monosugar.aspx?display=Print
> I am not a pro developer. Is there a tutorial available on how to use the telepathy API for mesh networking in my activity as it is normally available for Python etc. while developing an activity. I would be obliged for the same.
> 
> >>They are normal Gtk widgets, you can see how to construct them in the
> >>sugar-toolkit code:
> >>
> >>http://git.sugarlabs.org/projects/sugar-toolkit/repos/mainline/blobs/master/src/sugar/activity/widgets.py#line326
> 
> I am sorry I didn't refer to using C# here. How can I make the Activity Toolbar or these widgets in my activity using C#?
> 
> >>3) I want to use the Text to Speech mechanism in my activity similar to eSpeak. How's that done in Mono?I think you have two options:
>  >>
> >>- DBus# to interface with speech-dispatcher 
> >>- http://wiki.sugarlabs.org/go/Activity_Team/gst-plugins-espeak
> 
> Since I am a new learner, I would really appreciate a sample or a tutorial on how do the same(using C# here).
> I would be really indebted for help. Thanks a lot!

If you are just learning to program, writing your Sugar activity in Python would save you loads of trouble. 

It is possible to write an activity in any language (I know, because I did it) but you do have to be proficient in the language you want to use, and be able to map general advice into working code. 

For C#, the framework that Lionel's tutorial describes already goes a long way, the hardest part is done. But extending it to fully support a Sugar-like GUI and collaboration is going to be your problem, since you are one of the very few (if not the only one) who want to write an activity in C#.

- Bert -


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.sugarlabs.org/archive/sugar-devel/attachments/20100927/0f64c93e/attachment.htm 


More information about the Sugar-devel mailing list