For the toolbar entry : i will do the effort to implement it :)<div><br></div><div>Thank you for the JSON advice. I also think that was because i did not install my activity that the mime type was not recognized.</div><div>
<br></div><div>So, I'll keep on using cairo for drawings.</div><div><br></div><div><br></div><div>Thank you very much ^^</div><div><br><div class="gmail_quote">Le 9 mars 2012 11:46, Gonzalo Odiard <span dir="ltr"><<a href="mailto:gonzalo@laptop.org">gonzalo@laptop.org</a>></span> a écrit :<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br><br><div class="gmail_quote">On Fri, Mar 9, 2012 at 7:16 AM, laurent bernabe <span dir="ltr"><<a href="mailto:laurent.bernabe@gmail.com" target="_blank">laurent.bernabe@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello everyone,<div><br></div><div>I plan to go on developping on my project LearningWriting I post on sugar gitorious a few months ago.</div><div>But, as I'm facing some developping difficulties, I woul like to have your suggest about some details :</div>


<div><br></div><div><ol><li>My program, in its current state, (parenthesis : no internalization yet), just lets a user draw whatever he wants on a kind of blackboard with just the chalck, and whenever he want, he can replay the animation. But he can configure the point size and the animation speed size.</li>

</ol></div></blockquote><div><br>Nice. Would be better have a entry in the toolbar to set the velocity instead of using a window. Or better use a gtk.HScale<br>And please use the "new" toolbars (present since sugar 0.86, see the work we did in <a href="http://wiki.sugarlabs.org/go/Design_Team/ToolbarCatalog" target="_blank">http://wiki.sugarlabs.org/go/Design_Team/ToolbarCatalog</a>)<br>

 </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><ol>
<li>The main purpose of this program, is to let teachers make their own letters/digits sets, or download and install existing sets. I think a tarball format is the best archive format purposal. I know Python reduce the complexity for creating such archives, but what I wonder is if I will be able to let user easily import/export archives to/from a usb key (and/or the journal). I have a copy of the activity guideleness, and I must read it further that I've done before, but do you think this use case can be easily implemented ?</li>

</ol></div></blockquote><div><br>You can save easily the data in a json format and assign to the activity a mimetype, (like you are doing)<br>then the files will be recognized in the journal or in a external device.<br>If you can't see the extension assigned when you copy a file from the journal to a pendrive,<br>

remember the activity should be installed (with a .xo) to sugar recognize the mimetype.<br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>

<ol>
<li>Should I use Python3 ? Should I try to program for GTK 3 ?</li></ol></div></blockquote><div>No. You should no use python 3, sugar is not ported and will not in the near future.<br>GTK 3 is not needed right now, but if you plan use it in 6 months/1 year, will be ok<br>

(but can do your development a little more difficult.<br>You are using cairo to draw, then porting to gtk3 will be easy.<span class="HOEnZb"><font color="#888888"><br><br>Gonzalo<br></font></span></div></div>
</blockquote></div><br></div>