Re: [Sugar-devel] [SLOBS] meeting reminder
Hey, I cannot attend the meeting tomorrow. Can we please move the meeting to next week and one hour later? 2015-08-01 9:01 GMT-03:00 Walter Bender walter.ben...@gmail.com: We meet on Monday, 3 August at 23:00 UTC, 7PM Boston, 19:00 Asuncion, 09:00+1 Sydney, 23:00 Paris, 20:00 BA, 20:00 Montevideo, 20:00 Sao Paulo 17:00 Managua, 18:00 Bogota, 04:30+1 New Delhi. We need to wrap up the discussion about the oversight board elections and touch base re plans for the next release. regards. -walter -- Walter Bender Sugar Labs http://www.sugarlabs.org ___ SLOBs mailing list sl...@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/slobs ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] sugar-build on archlinux without broot
All Arch Linux users I met usually solve this problem when developing by using virtualenv. 2014-03-09 20:54 GMT-03:00 Daniel Narvaez dwnarv...@gmail.com: On 10 March 2014 00:46, Daniel Narvaez dwnarv...@gmail.com wrote: On 10 March 2014 00:07, Gonzalo Odiard godi...@sugarlabs.org wrote: Then issues ocurred with gwebsockets. It persistently tried to use python3.3, my system's default, instead of python2.7. Finally I found the culprit, in ./out/sandbox/install/lib/python2.7/site-packages/osbuild/build.py I replaced in line 190 one instance of python for python2.7 and it worked after that. Finally when building sugar-base I had to set up the environment variable PYTHON=/usr/bin/python2.7 in order for it to build. Also, when building sugar, I had to manually create the directory ./out/install/etc/gconf/ or it would fail to install Maybe you can solve this issues just creating symlinks like in fedora: [gonzalo@localhost develop-activity]$ ls -l /bin/python lrwxrwxrwx. 1 root root 7 Jan 9 2013 /bin/python - python2 [gonzalo@localhost develop-activity]$ ls -l /bin/python2 lrwxrwxrwx. 1 root root 9 Jan 9 2013 /bin/python2 - python2.7 Gonzalo I think archlinux has those symlinks already, but it also has python which is reallly python 3. Now honestly I think that's a very bad decision archlinux made (and the reason I'm not using it anymore, fwiw, it's a real pain if you are compiling stuff a lot). But it is compatible with best practices suggested by the python documentation. So I think we should follow those practices in sugar-base (i.e. explicitly require python2), which will take care of this issue. We are already doing that in the gtk3 modules. Oh missed the /bin/python - python2 suggestion. That would break archlinux stuff which assumes python is python3. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] My proposals to improve sugar:
2013/11/6 Daniel Narvaez dwnarv...@gmail.com and has the disadvantage that you can not prove what you do on the xo . I never tested but you should be able to get sugar-build working on the XO itself. If you give it a try and run into issues let me know. I'm pretty sure I'll be able to make it work. I tested some time ago when it didn't use broot... Sugar-build does not support ARM. Cheers, Daniel. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [sugar-build] Landing the chroot branch
2013/7/15 Daniel Narvaez dwnarv...@gmail.com: Should be fixed now. Can you give it another try? I get a traceback and don't see any logs. Traceback (most recent call last): File ./osbuild, line 467, in module main() File ./osbuild, line 452, in main setup(options.command) File ./osbuild, line 321, in setup build_root = build_root and broot_state() != ready File ./osbuild, line 277, in broot_state return broot_check_output([state]).strip() File ./osbuild, line 225, in broot_check_output return subprocess.check_output(broot_args) File /usr/lib64/python2.7/subprocess.py, line 544, in check_output raise CalledProcessError(retcode, cmd, output=output) subprocess.CalledProcessError: Command '['sudo', '/home/dfrancis/sugar-build/build/out/sandbox-host/install/bin/broot', 'state']' returned non-zero exit status 1 ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [sugar-build] Landing the chroot branch
Now it seems to be working :D It started pulling automake, so it's time to wait and see if it works. 2013/7/16 Daniel Narvaez dwnarv...@gmail.com: This is _not_ on a fresh clone I guess? Could you try with a fresh clone? I made pretty big changes and it's pretty hard now to tell you exactly what would need to be cleaned. Thanks for the patience, we will get there :) On 16 July 2013 23:04, S. Daniel Francis fran...@sugarlabs.org wrote: 2013/7/15 Daniel Narvaez dwnarv...@gmail.com: Should be fixed now. Can you give it another try? I get a traceback and don't see any logs. Traceback (most recent call last): File ./osbuild, line 467, in module main() File ./osbuild, line 452, in main setup(options.command) File ./osbuild, line 321, in setup build_root = build_root and broot_state() != ready File ./osbuild, line 277, in broot_state return broot_check_output([state]).strip() File ./osbuild, line 225, in broot_check_output return subprocess.check_output(broot_args) File /usr/lib64/python2.7/subprocess.py, line 544, in check_output raise CalledProcessError(retcode, cmd, output=output) subprocess.CalledProcessError: Command '['sudo', '/home/dfrancis/sugar-build/build/out/sandbox-host/install/bin/broot', 'state']' returned non-zero exit status 1 -- Daniel Narvaez ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [sugar-build] Landing the chroot branch
2013/7/13 Daniel Narvaez dwnarv...@gmail.com: I pushed that change. Can you retry and see if it works better? Both when pulling the current repository and cloning it again, I'm getting an error: Traceback (most recent call last): File ./osbuild, line 462, in module main() File ./osbuild, line 447, in main setup(options.command) File ./osbuild, line 320, in setup run_broot([download]) File ./osbuild, line 233, in run_broot stderr=subprocess.STDOUT) File /usr/lib64/python2.7/subprocess.py, line 511, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['sudo', '/home/dfrancis/sugar-build/build/out/sandbox-host/install/bin/broot', 'download']' returned non-zero exit status 1 broot.log says: Traceback (most recent call last): File /home/dfrancis/sugar-build/build/out/sandbox-host/install/bin/broot, line 5, in module main.main() File /home/dfrancis/sugar-build/build/out/sandbox-host/install/lib/python2.7/site-packages/broot/main.py, line 66, in main result = root.download() File /home/dfrancis/sugar-build/build/out/sandbox-host/install/lib/python2.7/site-packages/broot/root.py, line 274, in download raise e TypeError: invalid arguments to setopt ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [sugar-build] Is webkitgtk becoming a barrier?
El may 19, 2013 6:03 p.m., Alan Jhonn Aguiar Schwyn alan...@hotmail.com escribió: Hi, I'm not have a slow computer (I think) but never can finish the compile of webkit. Once time takes 3 hours and continues compiling: 3 hours with my 2 cores at 95 ~ 100% of use!! I'm tire of that and do ctrl+c, go to system.json, add a rule: if distro != ubuntu13.10.. Linux From Scratch says that the estimated compilation time is 55 SBU [1] which can be more than one day in slow boxes. In my case of use never use webkit (but maybe someone wants to use). If instead compile it, we install as a dependency? Or the installed version is old? The installed version is old. The options to solve the really long building time are: using the buildbot to get pre-compiled dependencies (similar to binary snapshots, but only for non-sugar components) or building on Fedora 19 which has already packaged Webkit2. I like both. Cheers, Daniel. [1] http://www.linuxfromscratch.org/blfs/view/svn/x/webkitgtk.html ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [sugar-build] Is webkitgtk becoming a barrier?
El may 19, 2013 7:40 p.m., Alan Jhonn Aguiar Schwyn alan...@hotmail.com escribió: And package the new version for Debian based systems?? Experimental... that package could be used by your own risk in Debian Sid or Ubuntu 13.x http://packages.debian.org/experimental/libwebkit2gtk-3.0-0 ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [ASLO] Release Music Keyboard-6
2013/3/27 Gonzalo Odiard gonz...@laptop.org - Future-future: it would be great to show the corresponding note in the musical representation [2], [...] recording would be nice, play-along [...] but that probably let the scope of the activity explode :) +1 and +1 May be we can propose these as tasks to GSoC. I have been working some time ago on a staff widget to show the notes [1]. Has pending to draw notes with sharps and flats (black keys in the piano). [1] http://git.sugarlabs.org/stafflib/test ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] github (was Re: Fwd: Proposal on how to speed up patch reviews)
2013/3/28 Daniel Narvaez dwnarv...@gmail.com I would expect the same workflow to be possible in GitHub. But let's play a bit with it and see if we like it before making too many plans about a switch :) Just some things which come to my mind: * Will bugs.sugarlabs.org make sense having the github bug tracker? * Should some subpages of http://wiki.sugarlabs.org/go/Activities be moved to github wikis? Cheers, Daniel Francis. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] 0.100 release schedule
Thanks for your work... Will be good to start scheduling the next Sugar major release. I'm glad because I have been waiting to sinc the documentation team schedule. http://wiki.sugarlabs.org/go/Documentation_Team/Notes/1.0#Schedule Best regards, Daniel. 2013/3/27 Daniel Narvaez dwnarv...@gmail.com Hello, here is an initial schedule for 0.100 http://wiki.sugarlabs.org/go/0.100/Roadmap Notes: * Still unclear if it's going to be 0.100 or 1.0. We should probably decide after we know what the focus of the release is going to be. * I have not allocated dates for unstable tarballs. Is it actually worth spending time building those? Is anyone using them? * I merged a few freezes together to simplify things. * Relevant GNOME and Fedora schedules are still unknown so I couldn't try to sync with those. Thoughts? -- Daniel Narvaez ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [ANNOUNCE] git.sugarlabs.org has migrated
2013/2/24 Aleksey Lim alsr...@sugarlabs.org On Sat, Feb 23, 2013 at 07:40:23PM +, Aleksey Lim wrote: Hi all! The git.sugarlab.org will be unavailable for an hour starting from 2013-02-24 06:00 UTC. It will migrate to new hardware and most recent Gitorious version. git.sugarlab.org was migrated to the most recent Gitorious release and new hardware. There are changes in different places. Hi, git:// read-only urls don't clone for me. The new http://src.sugarlabs.org/ cloning url seems to be working. Cheers, Daniel. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] [sugar-build] New tool to run Sugar in unsupported distributions
Hi all, I have been working in a tool to run Sugar Build on distributions which can't be supported by Sugar Build (oldstable, old versions of the supported distros, etc). You can see the git repository at [1]. This tool creates a virtual Ubuntu environment and builds Sugar on it. With debootstrap as a dependency, the usage of this tool is very easy: $ sudo ./env.sh install $ sudo ./env.sh shell $ cd ~/sugar-build $ make run $ exit I'm planning some improvements to do it more confortable and Daniel Narvaez is giving me some suggestions and bug reports. As soon as it's stable, the documentation will be in the Sugar Docs. Now you can read the usage in the README. Happy building! Daniel. [1] http://git.sugarlabs.org/sugar-virtual-env ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [sugar-build] New tool to run Sugar in unsupported distributions
2013/1/25 S. Daniel Francis fran...@sugarlabs.org: With debootstrap as a dependency, the usage of this tool is very easy: Last minute update to the procedure: $ sudo ./env.sh install $ sudo make run ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] F18.. go sugar-build, go!
2013/1/19 Bastien b...@laptop.org: I have both python 3.3.0 and python 2.7.3 on my system, I can easily use #!/usr/bin/env python2 if that's the main blocker. Just patch all Sugar components to use #!/usr/bin/env python2.7? That would be the first step, then I would follow the Sugar Docs procedure to support Arch. Currently, I have installed Ubuntu in a disk partition with Sugar-build and I run Sugar from ArchLinux through chrooting the Ubuntu partition. I'm working in write a section in the Sugar Docs telling the procedure to do it. The only part which doesn't work in a Chroot environment is the network part and some Dbus dependent software. Cheers, Daniel Francis. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [PROPOSAL] Inform the user when an activity is being installed and more
2013/1/12 Agustin Zubiaga Sanchez a...@sugarlabs.org: Hi everybody, Now, if we download or copy a .xo to the journal, it is installed automatically and doesn't informs to the user that the activity is being installed. We could show an alert with a countdown to tell the user that one activity will be installed and give the option to cancel this installation. That alert can appear on the journal (when we copy a .xo from a external device) and in Browse when we are downloading one (instead of the alert which appears when the file is fully downloaded). I would expand your proposal to all Journal file manipulation processes. Not only when it installs an activity, also when it's copying files to an external device, etc. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [PATCH sugar-runner v2] Use sugar style scrollbars when running in Unity
2013/1/4 Daniel Narvaez dwnarv...@gmail.com: Cool! Can you push please? (I gave you access) Thanks for reviewing it. Pushed as 37d63ccc . ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [PATCH sugar] Fix the activities list palette
Thanks. http://bugs.sugarlabs.org/ticket/4284 Walter, Can you remove the corresponding GCI task? 2012/12/6 Daniel Narvaez dwnarv...@gmail.com: From: Daniel Narvaez dwnarv...@gmail.com ActivityPaletter was ported to use the content box. We cannot mix content box and menu. --- src/jarabe/desktop/activitieslist.py | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/jarabe/desktop/activitieslist.py b/src/jarabe/desktop/activitieslist.py index 6594ee9..1a680fd 100644 --- a/src/jarabe/desktop/activitieslist.py +++ b/src/jarabe/desktop/activitieslist.py @@ -30,8 +30,8 @@ from sugar3 import util from sugar3.graphics import style from sugar3.graphics.icon import Icon, CellRendererIcon from sugar3.graphics.xocolor import XoColor -from sugar3.graphics.menuitem import MenuItem from sugar3.graphics.alert import Alert +from sugar3.graphics.palettemenu import PaletteMenuItem from jarabe.model import bundleregistry from jarabe.view.palettes import ActivityPalette @@ -494,13 +494,14 @@ class ActivityListPalette(ActivityPalette): self._favorite = registry.is_bundle_favorite(self._bundle_id, self._version) -self._favorite_item = MenuItem('') +self._favorite_item = PaletteMenuItem() self._favorite_icon = Icon(icon_name='emblem-favorite', icon_size=Gtk.IconSize.MENU) self._favorite_item.set_image(self._favorite_icon) +self._favorite_icon.show() self._favorite_item.connect('activate', self.__change_favorite_activate_cb) -self.menu.append(self._favorite_item) +self.menu_box.append_item(self._favorite_item) self._favorite_item.show() if activity_info.is_user_activity(): @@ -511,12 +512,12 @@ class ActivityListPalette(ActivityPalette): self.__activity_changed_cb) self._update_favorite_item() -self.menu.connect('destroy', self.__destroy_cb) +self.menu_box.connect('destroy', self.__destroy_cb) def _add_erase_option(self, registry, activity_info): -menu_item = MenuItem(_('Erase'), 'list-remove') +menu_item = PaletteMenuItem(_('Erase'), 'list-remove') menu_item.connect('activate', self.__erase_activate_cb) -self.menu.append(menu_item) +self.menu_box.append_item(menu_item) menu_item.show() if not os.access(activity_info.get_path(), os.W_OK) or \ @@ -528,13 +529,12 @@ class ActivityListPalette(ActivityPalette): registry.disconnect(self._activity_changed_sid) def _update_favorite_item(self): -label = self._favorite_item.get_child() if self._favorite: -label.set_text(_('Remove favorite')) +self._favorite_item.set_label(_('Remove favorite')) xo_color = XoColor('%s,%s' % (style.COLOR_WHITE.get_svg(), style.COLOR_TRANSPARENT.get_svg())) else: -label.set_text(_('Make favorite')) +self._favorite_item.set_label(_('Make favorite')) client = GConf.Client.get_default() xo_color = XoColor(client.get_string('/desktop/sugar/user/color')) -- 1.7.10.4 ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [IAEP] Sugar Digest 2012-11-16
2012/11/16 James Simmons nices...@gmail.com: 2). The Python Joven has a developer named Naughty Cristofer? Nope, it was the result of putting the name Cristhofer Travieso in Google Translate. See you! ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [sugar-build] Planning to drop gtk2 support
Are you talking about that Sugar-build isn't going to build anymore sugar-toolkit-gtk2? The Gtk2 environment/dependencies are generally pre-installed on standard systems. Not in mini-distros, but it's not the case of Fedora and Ubuntu. I agree in that a build from sources isn't appropiated when nobody needs to contribute on it. But rmp/deb packages are all what we need to run activities in Gtk2. Maybe any packager could tell us about a place to get them. Cheers. ~danielf 2012/11/16 Daniel Narvaez dwnarv...@gmail.com: Yeah. To be clear this affects sugar-build *only*. Distributions will keep shipping the gtk2 stuff as far as I know. On Friday, 16 November 2012, Walter Bender wrote: So the idea is that gtk2 apps won't run any more? -walter On Fri, Nov 16, 2012 at 12:21 PM, Daniel Narvaez dwnarv...@gmail.com wrote: Hello, I'm planning to drop gtk2 support and I'm giving a warning about it in advance, in case someone has concerns about it. I just think sugar-build is a development tool and no one should be developing on gtk2 anymore... (if not for minimal maintenance stuff, but that doesn't probably need sugar-build). -- Daniel Narvaez ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel -- Walter Bender Sugar Labs http://www.sugarlabs.org -- Daniel Narvaez ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] 2 points of Sugar Labs business
Hi James, 2012/11/13 James Simmons nices...@gmail.com: What's the story with Python 3? I seem to recall reading that Fedora would stop shipping Python 2 and everything would break. Maybe you got confused with the recent update to GTK3. Python3 is a different command to Python2 and Sugar is still in Python 2. I'm working on a version of the Sugar toolkit in Python 3. At the moment Sugar isn't going to be migrated officially but activities could be made in Python3 if the toolkit is ported. The only difficulty is that I'm not sure if the OLPC builds include Python3 and the necessary libraries. See you, Daniel. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Opening a web page from another Activity/application
Hi Tony, 2012/11/12 Tony Anderson tony_ander...@usa.net: Hi, I have been approaching this from the other direction - opening a Sugar activity from a web page using localhost (CGIHTTPServer). I started the local server at launch of the Learn.activity (Firefox wrapper). The localhost cgi scripts invoke python scripts which can launch Sugar activities (new or resume). Resuming requires a minor patch to sugar-launch. The motivation for my proposal was a QR reading activity that needs it to open the links in the web browser. The difference is that the Browse activity needs to receive the URL to be loaded and I solved it with a patch to Browse. Daniel. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] [PROPOSAL] Opening a web page from another Activity/Application
Hello, Today at the PyCon Uruguay, some developers were asking about How can they open a webpage through the Write Activity. And I'm working in a solution for this because I think it's part of the standards a web browser must can do. I have a repository with a command which starts the Browse activity and sets the URI in an environment variable. I have a repository for the command [1]. Can be installed with the same way as another Sugar component with make install. It also needs a patch[2] for the Browse activity to read the environment variable. I could not set the configuration for set it as the default browser when calling the function gtk.show_uri, the configuration file would need to can be installable from my repository too. Best regards, Daniel. [1] http://git.sugarlabs.org/browse-standarization/mainline [2] http://people.sugarlabs.org/francis/0001-Show-an-URI-from-the-env.patch ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [PROPOSAL] Opening a web page from another Activity/Application
2012/11/11 S. Daniel Francis fran...@sugarlabs.org: they open a webpage through the Write Activity. Browse Activity, little error when writing the mail. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Want to install sugar jh-build, but seems that Ubuntu can't host it.
Hello, With Lubuntu, I had to install the packages related to Gstreamer. And the Python Gobject Introspection bindings for Cairo (python-gi-cairo). After that, Sugar runs, but it crashes very often. Here the log file: (shell.log) http://people.sugarlabs.org/francis/sugar-build-ubuntu.log Regards, Daniel Francis. 2012/11/7 Daniel Narvaez dwnarv...@gmail.com: Oh, that was in reply to Ignacio :) On Wednesday, 7 November 2012, laurent bernabe wrote: No, nothing went bad : I just wanted to be sure I could install it, before trying anything :) But there is sugar-build also :) 2012/11/6 Daniel Narvaez dwnarv...@gmail.com Hi Ignacio, I'm not sure to understand what you mean here. Does it fail to start? Icons are not shown? If you make bug-report and send the resulting tarball, it would make it easier for me to debug. On 6 November 2012 14:01, Ignacio Rodríguez nachoe...@gmail.com wrote: In Lubuntu 12.10 shows icons or even the X to start. 2012/11/6 Daniel Narvaez dwnarv...@gmail.com Hi, I don't know about sugar-jhbuild but sugar-build supports Ubuntu 12.10. git clone git://git.sugarlabs.org/~dnarvaez/sugar-build/gnome-3-6.git sugar-build cd sugar-build make build [wait ~10 minutes] make run (see the README for other useful commands) Note that support for 12.10 was added very recently so there are surely issues. If you give it a try please report them (see the README) and I will get them fixed. On 6 November 2012 13:46, laurent bernabe laurent.bern...@gmail.com wrote: Hello everyone, I would like to installl sugar jhbuild on Ubuntu 12.10 64 bits, but when I go to Ubuntu page of its wiki http://wiki.sugarlabs.org/go/Development_Team/Jhbuild/Ubuntu, it says that it is unsupported (because of python-xpcom lack). But just below, there are instructions to install it. Have I missed something or it is a way to bypass the problem ? Thanks in advance :) Laurent Bernabé Programmer Just By Hobby. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel -- Daniel Narvaez ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel -- Juan Ignacio Rodríguez CeibalJAM! Activity Central -- Daniel Narvaez -- Daniel Narvaez ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Purpose for Help Activity
2012/10/16 Gonzalo Odiard gonz...@laptop.org: Help issues are known and we need solve it, but I don't agree with the proposed solution. The style can be changed with css, that is not a problem. The biggest problem we have today, is found people to write the help. If we impose to a potential writer the work of learn docbook, will be worst. And writing a docbook editor is not a trivial task. People can write the help in any format and then the documentation can be transcribed by a mainainer. About having help content inside the activities, probably is a good idea. We need think about: * how enable the translation of that content (and how much disk space will use if we have all the translations inside the activity) This a good reason for use Docbook. The documentation could be sent to pootle. * where put the content related to sugar (not activities) With the modern =XO-1.5 which have the necessary storage space, I don't see any problem including the content as pre-instaled in Sugar. Regards, Daniel. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Purpose for Help Activity
2012/10/16 Tony Anderson tony_ander...@usa.net: Hi, What is the purpose of help? In Windows, help is a method to find out how to accomplish a particular task using an application. It is not a means to learn how to use the computer or Windows. This is a manual, when the XOs got my school, they came with a little manual. That's not the same help as the short documentation available on typical desktops. The Help activity is a specialized reader for the Floss (pdf) manuals. Unfortunately, the text in the Floss manuals was written for experienced computer users who were new to the XO and the Sugar. I don't feel as the appropiated pearson for give my viewpoint for that. But, looking at the end product, it looks very well redacted and explains very well what the children need to keep in mind when using an XO. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] A log with bugs in Sugar on XO-4.
I copy the file shell.log extracted from my XO-4 after some tests in Sugar. (Not very sure) The errors in this log could be related with: 1) Clipboard doesn't work for me. 2) After connect successfully to the router in my house, I could not connect again to that router. I'll try to reproduce them and make their corresponding bug tickets on bugs.sl.org or laptop.org. At the moment, enjoy the log and/or suggest any other possible issue. :) Cheers, Daniel. - :0 1350426861.253032 WARNING root: No Gtk.AccelGroup in the top level window. 1350426861.323027 WARNING root: No Gtk.AccelGroup in the top level window. :0 Traceback (most recent call last): File /usr/bin/sugar-session, line 105, in setup_frame_cb from jarabe import frame File /usr/lib/python2.7/site-packages/jarabe/frame/__init__.py, line 17, in module from jarabe.frame.frame import Frame File /usr/lib/python2.7/site-packages/jarabe/frame/frame.py, line 29, in module from jarabe.frame.activitiestray import ActivitiesTray File /usr/lib/python2.7/site-packages/jarabe/frame/activitiestray.py, line 31, in module from sugar3.graphics.tray import HTray File /usr/lib/python2.7/site-packages/sugar3/graphics/tray.py, line 35, in module class _TrayViewport(Gtk.Viewport): File /usr/lib/python2.7/site-packages/gi/types.py, line 243, in mro return mro(cls) File /usr/lib/python2.7/site-packages/gi/types.py, line 257, in mro bases_of_subclasses += list(map(mro, C.__bases__)) + [list(C.__bases__)] File /usr/lib/python2.7/site-packages/gi/types.py, line 257, in mro bases_of_subclasses += list(map(mro, C.__bases__)) + [list(C.__bases__)] File /usr/lib/python2.7/site-packages/gi/types.py, line 257, in mro bases_of_subclasses += list(map(mro, C.__bases__)) + [list(C.__bases__)] File /usr/lib/python2.7/site-packages/gi/types.py, line 257, in mro bases_of_subclasses += list(map(mro, C.__bases__)) + [list(C.__bases__)] File /usr/lib/python2.7/site-packages/gi/types.py, line 257, in mro bases_of_subclasses += list(map(mro, C.__bases__)) + [list(C.__bases__)] File /usr/lib/python2.7/site-packages/gi/types.py, line 257, in mro bases_of_subclasses += list(map(mro, C.__bases__)) + [list(C.__bases__)] File /usr/lib/python2.7/site-packages/gi/types.py, line 257, in mro bases_of_subclasses += list(map(mro, C.__bases__)) + [list(C.__bases__)] File /usr/lib/python2.7/site-packages/gi/types.py, line 257, in mro bases_of_subclasses += list(map(mro, C.__bases__)) + [list(C.__bases__)] File /usr/lib/python2.7/site-packages/gi/types.py, line 257, in mro bases_of_subclasses += list(map(mro, C.__bases__)) + [list(C.__bases__)] File /usr/lib/python2.7/site-packages/gi/types.py, line 269, in mro raise TypeError('Cannot create a consistent method resolution ' TypeError: Cannot create a consistent method resolution order (MRO) 1350426867.671856 WARNING root: No Gtk.AccelGroup in the top level window. 1350426867.723023 WARNING root: No Gtk.AccelGroup in the top level window. 1350426867.773013 WARNING root: No Gtk.AccelGroup in the top level window. 1350426867.823006 WARNING root: No Gtk.AccelGroup in the top level window. /usr/lib/python2.7/site-packages/gi/types.py:47: Warning: g_object_set_property: assertion `G_IS_VALUE (value)' failed return info.invoke(*args, **kwargs) /usr/lib/python2.7/site-packages/gi/types.py:47: Warning: g_value_unset: assertion `G_IS_VALUE (value)' failed return info.invoke(*args, **kwargs) 1350426995.524167 WARNING root: No Gtk.AccelGroup in the top level window. 1350426995.524167 WARNING root: No Gtk.AccelGroup in the top level window. Traceback (most recent call last): File /usr/lib/python2.7/site-packages/jarabe/model/neighborhood.py, line 392, in __active_activity_changed_cb connection = self._connection[CONNECTION_INTERFACE_BUDDY_INFO] TypeError: 'NoneType' object has no attribute '__getitem__' 1350428132.353772 WARNING root: No Gtk.AccelGroup in the top level window. 1350428132.356609 WARNING root: No Gtk.AccelGroup in the top level window. Traceback (most recent call last): File /usr/lib/python2.7/site-packages/jarabe/model/neighborhood.py, line 392, in __active_activity_changed_cb connection = self._connection[CONNECTION_INTERFACE_BUDDY_INFO] TypeError: 'NoneType' object has no attribute '__getitem__' ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] (Unconfirmed) Building error on Sugar Build
2012/10/12 Daniel Narvaez dwnarv...@gmail.com: Nope it doesn't happen on Fedora and Ubuntu. Looks like your distro has too old versions of those packages. Thanks. I'll try looking for updates and/or for more unstable repositories. Else, I'll have to clone them from Git. See you, Daniel. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] (Unconfirmed) Building error on Sugar Build
Last day I migrated my system to Trisquel. I know Trisquel isn't supported by Sugar Build, but it has the same package names as Ubuntu, so I tested editing the file which checks the distribution and I replaced the variable which checks the distro to 'ubuntu'. All the dependencies were installed. But I got an error when building Gtk+. I'd have to think Of course, it's not developed for my distro but I don't lease nothing asking. I copy the error from the log: - configure: error: Package requirements (glib-2.0 = 2.33.1atk = 2.5.3pango = 1.30.0cairo = 1.10.0cairo-gobject = 1.10.0 gdk-pixbuf-2.0 = 2.26.0) were not met: Requested 'pango = 1.30.0' but version of Pango is 1.29.3 Requested 'gdk-pixbuf-2.0 = 2.26.0' but version of GdkPixbuf is 2.24.0 - Anybody could confirm if it also happens on Fedora or Ubuntu. Just because I don't see pango and gdk-pixbuf in the cloned repositories. With that error, sugar-toolkit-gtk3 can't be built. Thanks and regards, Daniel Francis. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [ASLO] Release Terminal-41
Hi Gary, One time we received a patch by Flavio Danesse. He removed the line which is causing an error[1], but he didn't say what did his patch do, so it was not applied. I'll follow the ticket and wait for my XO-4. Thanks for testing. ~danielf [1] vt.feed(l + '\r\n') 2012/10/10 Gary Martin garycmar...@googlemail.com: On 10 Oct 2012, at 13:23, Gary Martin garycmar...@gmail.com wrote: Hey Guys, Thanks for the new release, very happy to have the great Tabs now in Terminal!! :) Could you make sure and push the source code changes back up to the main git repository (git.sugarlabs.org)? I've just been looking there to see what changed between v40 and v41 as Terminal-41 is failing [1] on XO-4 hardware, though it works fine on the XO-1.75 and I'm trying to diagnose the problem. The previous Terminal-40 release works fine on the XO-4 – so I'm currently trying to dig my way through the .xo bundles to see what changed ;) Just a quick update. Looks like it is the resume (load of previous Terminal state) and state saving in Terminal-41 that's broken, nothing to do with the XO-4 (just that I had saved state resuming from Terminal-40 that was causing Terminal-41 to hang at startup). I've updated the ticket. Regards, --Gary Regards, --Gary [1] http://bugs.sugarlabs.org/ticket/4020 On 10 Oct 2012, at 03:13, Rafael Ortiz raf...@activitycentral.com wrote: On Tue, Oct 9, 2012 at 6:45 PM, Agustin Zubiaga Sanchez a...@sugarlabs.org wrote: Yes Rafa, thanks for releasing it... El 09/10/2012 20:03, S. Daniel Francis fran...@sugarlabs.org escribió: 2012/10/9 Rafael Ortiz raf...@activitycentral.com: Release notes: * Initial GTK3 release (Port by S. Daniel Francis fran...@sugarlabs.org,Agustin Zubiaga Sanchez a...@sugarlabs.org). * Adding summary, Rafael Ortiz raf...@activitycentral.com * Testing by Flavio Danesse fdane...@activitycentral.com * Same tabs as Browse. (Also fill all the allowed space correctly.) Thanks for releasing it, Rafael. Thanks to you guys-. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [ASLO] Release Terminal-41
2012/10/10 Manuel Quiñones ma...@laptop.org: Yes! They work great. Thanks Dani! I think we now need a maximun number of tabs, after than that the tabs should be scrolled with buttons. Gtk does it automatically. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [ASLO] Release Terminal-41
2012/10/10 Coltivare Fiori coltivarefi...@connettivo.net: I updated the Terminal Activity to version 41 on Sugar 0.96.1 and it failed to start. We already received a report. Try removing the Journal entries of Terminal, and then open the new version. Else, would be well received a log in this mailing list or in bugs.sugarlabs.org . Those logs are in ~/.sugar/default/logs/ or in the Log activity. You can find the log for a specific activity by its bundle id. In the case of Terminal, the bundle id is org.laptop.Terminal See you, Daniel. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [ASLO] Release Terminal-41
2012/10/10 Gonzalo Odiard gonz...@laptop.org: This activity is compatible with sugar = 0.98 A small correction. Works in = 0.96 . ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Fwd: GNOME Games split
2012/10/9 Chris Leonard cjlhomeaddr...@gmail.com: Just FYI, I thought this change might be of general interest. Thank you, Chris. I was just thinking in sugarize Gnome-Sudoku which is written in Python. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [ASLO] Release Terminal-41
2012/10/9 Rafael Ortiz raf...@activitycentral.com: Release notes: * Initial GTK3 release (Port by S. Daniel Francis fran...@sugarlabs.org,Agustin Zubiaga Sanchez a...@sugarlabs.org). * Adding summary, Rafael Ortiz raf...@activitycentral.com * Testing by Flavio Danesse fdane...@activitycentral.com * Same tabs as Browse. (Also fill all the allowed space correctly.) Thanks for releasing it, Rafael. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Call to Activities Maintainers! Summary info
2012/9/25 Gonzalo Odiard gonz...@laptop.org: Hi Activities maintainers, In the next Sugar version, a summary will be displayed in the activities list, instead of the installation time. I'm sad hearing that. Sugar gave children the possibility/need to explore and discover the aim and functionality of each activity. (Tested by myself.) I think this is a really well planned thing in Sugar. Is really needed a summary in this educational environment? Cheers, Daniel Francis. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [PATCH sugar-artwork] Set height for all the GtkNotebook tabs
2012/9/27 Manuel Quiñones ma...@laptop.org: Hey Dani, 2012/9/26 S. Daniel Francis fran...@sugarlabs.org: 2012/9/26 Daniel Francis fran...@sugarlabs.org: +padding-top: $(icon_large * 0.30)px; +padding-bottom: $(icon_large * 0.30)px; I spoke too early, this solution doesn't work as expected with tab close buttons. Ooops! :) I think the way to do it is setting top and bottom padding to the label inside the tab. Thanks for the tip. :) But we have to find the exact number to make the tab the same tall when it has only labels and when it has labels and buttons. Maybe start using the same as the button padding wich is $(border)px and add a bit of salt. In my patch I used the icon size, but there's to test which is better. Regards, Daniel. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [DESIGN] Chage in filter in home view
2012/9/26 Gary Martin garycmar...@googlemail.com: Behaviour (1) was rejected, as a search query doesn't often make sense in all views (searching for an AP or Buddy in Neighbourhood is not much use when you switch to the Home Favourites view). And when you open an activity and return to the home view? Developing and testing, when I use the home list view and use the filter to find my activity, I have to write the activity name all the times I need to run it... ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [DESIGN] Chage in filter in home view
2012/9/26 Gary Martin garycmar...@googlemail.com: Yes that is a fair use case, especially if you have lots of activities installed, and I do wish we had more active developers like you! :) Can I ask, do you spend more time working in Sugar's home list view, or the home favourite view? Would making your test activity a Favourite be a practical option? Again, this depends how many Activities you already have favourited ;) Now I'm using the list view because the list view in Gtk3 is more stable than the favourite view. When I say unstable I mean that sometimes I try to start an activity and nothing happens. I didn't check the logs and I'm a few busy working in other things, but when I have time I'm going to report some issues. Cheers. ~danielf ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [PATCH sugar-artwork] Set height for all the GtkNotebook tabs
2012/9/26 Daniel Francis fran...@sugarlabs.org: +padding-top: $(icon_large * 0.30)px; +padding-bottom: $(icon_large * 0.30)px; I spoke too early, this solution doesn't work as expected with tab close buttons. Ooops! ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [IAEP] Sugar Digest 2012-09-18
2012/9/23 Agustin Zubiaga Sanchez a...@sugarlabs.org: Hi, everybody. Like Daniel, I'm from Uruguay and I feel identified with the Walter message. Hi Agustin! I'm fourteen years old, and I started using sugar when I was ten, when I receive my XO was the first time that I used linux and it liked me a lot. About the young programmers: I was a student of Flavio Danesse, and he taught me a lot but for obvious reasons I had to appeal the internet to found more information, where the most are in english, for me it wasn't a problem, because I have learned english.. But the most of the children in Latin America hasn't this luck, and they find it difficult to program. I'd say now there's a lot of documentation in Spanish, but I agree with you in the language can be a barrier sometimes, specially for write e-mails and similar things. When Flavio said he doesn't understand why Spanish speakers write source code in English, I replied I don't write code in English, I write in Python, in C (not for Sugar) or in any programming language. About sugar and the teachers: Unfortunately, when I was in primary school, no teacher was concerned with explaining how to use my XO, and the logical sugar activities, such as Turtle Art and Scratch, but luckily their interfaces are very intuitive. And when I started the high school was the same, no teacher was interested in the XO, except Mr. Flavio Danesse :) For this reason the most of my classmates, only use their XO to browse in Facebook and other social networks. Here One Laptop Per Child is promoted as an implementation with the aim of provide the children the possibility of access to the information and internet. Of course, when it's also an education project we expect an educational usage, I can say there is at least one teacher per school interested in implement XO computers in its classroom. Cheers, Daniel. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [IAEP] Sugar Digest 2012-09-18
2012/9/23 Chris Leonard cjlhomeaddr...@gmail.com: I would love to see more of the Spanish-only activities present in ASLO take this step to i18n so that they can be used by other XO kids around the world in their mother tongues. A good way would be if the ASLO editors request the authors to internationalize their activities. I know sometimes they do it, and leave a link to an article at wiki.sl.org where explains how to implement i18n. For my part, I can start to contact Spanish developers. Best regards, Daniel. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [IAEP] Sugar Digest 2012-09-18
but where I worked, it was like this: #!/usr/bin/python # questo è il modo in cui il punteggio di corrispondenza viene calcolato partida = calcio101+calcio02 Ciao Mondo! :) # Just regarding the Sugar Paint activity mixes English and Portuguese of its original maintainers. Now # with all the changes and patches it conserves only some words, specially file names like desenho # instead design. They are both 'python' but most programmers are not going to be able to debug the 2nd example easily. Making all the comments and the variable names in Spanish is not what I expect for sugarlabs but maybe for the 'python joven' or similar. Small examples can be made in other langs, but not a big application. That doesn't teach for the real life. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [IAEP] Sugar Digest 2012-09-18
2012/9/23 James Cameron qu...@laptop.org: On Sun, Sep 23, 2012 at 09:14:41PM -0300, S. Daniel Francis wrote: 2012/9/23 James Cameron qu...@laptop.org: It is irritating that we still store source code in linear text files without built-in internationalisation. As you change these names, they become far less useful to programmers who use that language. The development system would be more open and inclusive if there was a way to keep variable names, and other text, in multiple languages. It isn't possible, there is to implement l10n and then there are needed translators, our translators cant translate source code... True, only bilingual programmers could translate source code ... and that was what I was suggesting. I doubt our string translators, or their infrastructure, could be any help whatsoever. It is a totally different problem. But I don't think it is impossible for bilingual programmers to collaborate in this way. Merely difficult. There are many reasons for don't translate source code. Here two: - Other languages have non-ascii characters, and variable names can't be written with those characters. - Python is very similar to the natural language, but in other languages, where the order to use the words is different, the code leases concordance. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [IAEP] Sugar Digest 2012-09-18
2012/9/20 Kevin Mark kevin.m...@verizon.net: While I can't speak for Sugar Labs, this sound like a very good problems to address. Scratch has a website to 'upload' its programs. I would really love to see a way to help young sugar activity hacker have a place for them to 'hack' on their games/activities. Maybe Activities.sugarlabs.org or some website in .uy? And maybe a forum? (I'm not someone to do this sadly but would think that the very capable people around the sugar community would find this idea motivating) ASLO is a good place to upload a Sugar Activity, also in Uruguay we have a deserted website for the ceibalJAM community: http://ceibaljam.org/drupal/?q=lista_descargas CeibalJAM is an organization made for volunteers with the aim of generate educational resources looking at what is needed by the children at Uruguay. I used to write at the CeibalJAM mailing list. (Olpc-Uruguay on lists.laptop.org) OH wow. I have recently started to 'hack' on JAMedia and JAMediaTube. So I know his work. I wonder if making videos of his lecture would be something he could do and the kids could watch? He wants to do his code hackable by interested children, so he writes his programs in Spanish. It's a good way to learn, but it's not a good practice. At least he should setup i18n at JAMedia. If you and others can make 'clubs' in your area, that would be great, maybe they can setup a web 'forum' for everyone to exchange ideas. We started a public google group one time, but we are too few, and at Olpc-Uruguay we could share, ask, etc. Oh, that is sad, I'm surprised to read that. The first year when I received my XO, I had a teacher who requested as homework make some geometric forms with TA. At the next courses, the teachers preferred Scratch and Etoys because it was what they learned in their teaching courses. With the robots getting the schools, there are teachers learning TA and they liked it very much. Now at the highschool (from twelve years old to eighteen in .UY), teachers aren't formed to work with XOs, so the usage at highschools is very poor. So I'd say the expected educational implementation of OLPC and Sugar, is happening slowly at primary schools. Cheers, Daniel. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [IAEP] Sugar Digest 2012-09-18
2012/9/20 James Simmons nices...@gmail.com: Daniel, I did remember to try out your Activities last night. In addition to my XO I have several computers running different versions of Fedora, and that was what I used because it was a bit more convenient. I ended up using two different computers because the latest Fedora won't run Sugar File Manager. Sugar File Manager was different than I expected it to be. It actually mounts the Journal on the GNOME desktop, although GNOME can't browse it and wouldn't let me unmount it. The File Manager seems to be more of a browser than what I would think of as a file manager. It doesn't look like you can copy files into the Journal or modify or delete Journal entries. I'm intrigued by the mounting of the Journal but I wouldn't call it an *improvement* over Sugar Commander, which does let you do these things. Of course it's not an improvement, I don't feel proud of that creation. I didn't try Agubrowser. The other stuff was without exception really impressive. I had to wonder if you adapted existing Python programs to be Sugar Activities or if you wrote the whole Activities. The Graph Plotter was especially impressive. First I sugarized Lybniz Graph Plotter, and after understand all the code and see some defects I decided to create my own plotter called Graph Plotter and maintain it as myself. It looks like JAMMath does need the i18n treatment, but it shouldn't be difficult. I'm wondering if you've made any use of Como Hacer Una Actividad Sugar and if so if you found it helpful. I have a printed version (in English) of your book. I'd say it's helpful and I still read it for check about collaboration in activities. I have pending to implement it on Graph Plotter. It looks like the latest Python will break all the code samples in that book so at some point it will need to be revised. A new version of your book would be great. But we are not at the best moment, Sugar is in a transition to GTK3. I'm also developing a desktop framework which provides compatibility between Sugar and other desktops, and reduces repetitive code. I think that framework finished, would be a new better way to develop a Sugar Activity. Cheers, Daniel Francis. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [IAEP] Sugar Digest 2012-09-18
2012/9/19 James Simmons nices...@gmail.com: Walter, First, congrats on the grandchild. Second, I am intrigued by the statement that 10% of Sugar Activities were written by children who grew up with Sugar. That is an incredible accomplishment, and it makes me wish that the ASLO website had a Collection of those Activities. If something like that existed I could see what kinds of Activities they were doing, how many were programs written for other environments using a Sugar wrapper, how many are purely Sugar Activities, who the developers are, what Sugar features are they using and not using, how popular the Activities are, etc. Hello James, I feel identified with what Walter described so I dare to answer. I'm from Uruguay and I'm thirteen years old. I'm one of the activity developers in transition to Sugar contributor. I don't know other young Sugar contributors outside Uruguay, so I'll tell you about the situation here. About one year ago, children made activities often as a hobbie, that activities had not a reasonable aim and they weren't very well integrated with Sugar. Some examples: Agubrowser by Agustin Zubiaga: This activity was based on webkit when Browse used python-hulahop (gecko). http://activities.sugarlabs.org/en-US/sugar/addon/4419 Sugar File Manager by Ignacio Rodríguez and me: Based on Sugar Commander and JAMexplorer, with some improvements. http://activities.sugarlabs.org/en-US/sugar/addon/4494 Actually, we make activities thinking in its utility, but our aim is still learn with what we do. I leave here some of the activities that make us feel proud: TerronesWeeper: A mines game for CeibalJAM!, the Uruguayan OLPC community, which is represented with a Terrón[1]. http://activities.sugarlabs.org//en-US/sugar/addon/4520 Chart: Made with help of adults and now available at the official OLPC build. http://activities.sugarlabs.org/en-US/sugar/addon/4534 Graph Plotter: Mathematical function plotter. http://wiki.sugarlabs.org/go/Activities/Graph_Plotter JAMath: Other game for CeibalJAM. I'm not sure, but I think this activity is only available in Spanish. http://activities.sugarlabs.org/en-US/sugar/addon/4595 Sorry if I forget other activities. Cheers, Daniel. [1] http://ceibaljam.org/drupal/?q=node/741 ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [IAEP] Sugar Digest 2012-09-18
2012/9/19 Walter Bender walter.ben...@gmail.com: There are some from outside of .UY as well... Walter, Can you tell us about the activities outside of .UY, please? I never hear about them and would be of interest for some people in these mailing lists, including myself. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [IAEP] Sugar Digest 2012-09-18
Hi Kevin, 2012/9/19 Kevin Mark kevin.m...@verizon.net: Hearing from the kids who are making Sugar activities and more contributions, I'm really wanting to know what teaching environment made this possible? Summing my case all the cases I listened about, we usually learn by our self. Thinking about why Sugar, well, we could make desktop applications, but a free and decent way to share a program is difficult to find and there's not always a community where we can share what we make. Also I think Sugar needs activities, unlike desktops, where practically all is already made. Just Edward suggested us to tell our stories, but at the moment I'll not get into many details and only answer your questions. Are there activity hacking classes? In Uruguay there is only one activity hacking teacher: Flavio Danesse. He is an IT teacher, and every year he organizes a workshop where he teaches volunteer students to program in Python. The group Python Joven, in English Young Python.. Currently, his students contributing here are Agustin Zubiaga and Cristhofer Travieso, they told me about another student who develops applications for Android. Is this kind of experimentation part of a turtleart class? For my part I can say yes and no... When I received my XO with Sugar I liked very much TurtleArt, but the teachers don't teach it very often, I had to look for documentation. Have kids 'goggled' about programming on their own time and wanted to know about programming? Now you are right, I learn practically all 'googling'. Flavio's students told me they also learn(ed) a big part of what they know searching and investigating by them self. I think it's better because we can learn what we are interested in, also if it's not related with Sugar. Are there computer programming classes and teachers that have assignments that ask the kids to explore? Programming is not often a subject at the school. I know about optional workshops, like Flavio's. My parents are teachers, and about three-four years ago, when I was ten years old, I used to go to the highschool where my parents worked and I listened to a workshop about web design (basic HTML development) and graphic design (with GIMP). That workshop was not a way to get young programmers, but it removed me the fear of seeing a source code as something strange or made for be understood by non-human people. Cheers. ~danielf P.S: Sorry, I don't speak English very well. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [PATCH sugar-artwork][DESIGN][PROPOSAL] Use the same style as Browse in all GtkNotebooks
2012/9/17 Manuel Quiñones ma...@laptop.org: I attach a patch with the modifications above. Thanks again! Thanks to you, Manu! I'm starting to understand css. What I did is only rename BrowseNotebook to .notebook or if both types exist, mix their rules without know always what are that rules doing and without look at the Browse sources. I think the Gtk theme styling could replace lots of lines of Python code at activities (also sugar toolkit) for provide children the Sugar typical appearance. Specially for sugarized applications. Cheers. ~danielf P.S I added myself to the cc list at the bug ticket. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [sugar-toolkit-gtk3] Set default python encoding to utf-8
I'd say: +1 to your change 2012/9/14 Gonzalo Odiard gonz...@laptop.org: This patch is not included and haven't received comments. Any particular reason? There are ported activities needing this change. Gonzalo On Mon, Aug 27, 2012 at 11:09 AM, godi...@sugarlabs.org wrote: From: Gonzalo Odiard godi...@gmail.com As spoted by Daniel Narvaez in [1], pygi does not set the default encoding anymore as the old gtk did. This change break ported activities. The change in gtk was discussed upstream here [2] A better solution will be implemented when we port to python 3, when we will be able to use real unicode strings. Signed-off-by: Gonzalo Odiard gonz...@laptop.org [1] http://lists.sugarlabs.org/archive/sugar-devel/2012-August/038993.html [2] https://bugzilla.gnome.org/show_bug.cgi?id=681915 --- bin/sugar-activity | 5 + 1 file changed, 5 insertions(+) diff --git a/bin/sugar-activity b/bin/sugar-activity index 5aef1ae..839174a 100644 --- a/bin/sugar-activity +++ b/bin/sugar-activity @@ -18,6 +18,11 @@ import os import sys +# Change the default encoding to avoid UnicodeDecodeError +# http://lists.sugarlabs.org/archive/sugar-devel/2012-August/038928.html +reload(sys) +sys.setdefaultencoding('utf-8') + import gettext from optparse import OptionParser -- 1.7.11.2 ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] Key accelerators on the XO
Hi, I'm developing a Sugar Activity and it has ToolButtons gtk-add and gtk-remove, those buttons append and remove elements at a GtkTreeView and at the time to choice a key accelerator for the remove button, I selected the Delete key; but that key isn't at the XO-1.75 keyboard. I already saw the Fullscreen button has by convention the key accelerator Altreturn on Sugar instead of F11, the typical desktop accelerator. Is there any convention for replace the 'Delete' key on Sugar? Thanks and regards. ~danielf ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Testing Rotate in sugar-jhbuild
2012/8/16 Gonzalo Odiard gonz...@laptop.org: In anybody want test how activities work with the screen rotated in sugar-jhbuid, can do in the terminal: xrandr -o left when your neck hurts, or you have finished... xrandr -o normal Thanks, it's very useful and funny. I'll add it to a Tomboy note for besure to don't miss it. Cheers. ~danielf ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Unicode strings in translations
2012/8/14 Gonzalo Odiard gonz...@laptop.org: - Strings with format Example: button.set_tooltip(_('Append %s') % _('something')) The problem with this example is when you have language like Spanish, where some of the characters can be encoded in ascii, but not all. In this case, gettext will return a str or a PyUnicode depending of the case, and if are not compatibles, the format will break. Well, the PyUnicode type is recommended for index and modify a string, Manuel gave a good example, but there aren't the necessary cases at activities for use the PyUnicode format as default in the translations, non-ascii characters often need more than a byte for save the character in the memory and the Python str class is made for index byte per byte, not character per character. That's the main difference between the Python types str and PyUnicode. The Python strings are encoded by default in the utf-8 code charset thanks to the heather line. Another function of the PyUnicode type is encode a resultant string of type str. So, the Python strings can be encoded in a Unicode compatible charset like utf-8, the Python Unicode type is a way to encode a string if you don't like to add a header and the recommended way to work in the program internally, so you mustn't use it for output, you will have to encode the content of type PyUnicode in a PyString with the UTF-8 charset for the output and it'll not generate any conflict. Cheers. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Unicode strings in translations
2012/8/15 Martin Langhoff martin.langh...@gmail.com: So for example, a pure python zip compression/decompression implementation now needs to clearly define it is _not_ working on utf-8 streams. It started when Humitos saw the Python Unicode handling at Typing Turtle. His purpose is setup gettext for get translated data of type PyUnicode instead of PyString. A big part of the translated messages are often tooltips for the toolbars and other static text. You can get those strings and set them as property of a SugarToolButton without the word unicode in all your activity code. What TypingTurtle does, could be well because it's a long internal work with the strings, but it isn't the same with the big part of the translated messages. Your example doesn't compress translated text; so get translations as PyUnicode for that case is useless. I see you are also looking other issues in this same thread, I'll say +1 to all the good practices with the objective of remove the repetitive code. Use unicode=True as argument for gettext.install could do more short the task with TypingTurtle, but it will be more long at other activities . Cheers. ~danielf ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Unicode strings in translations
2012/8/15 Manuel Kaufmann humi...@gmail.com: [humitos@michifus ~]$ python test.py UTF-8, set by the first line in the script len: 7 last but one letter: � We agree sometimes you could need the unicode for solve some conflicts like this, but: How many translated strings are indexed by the programs? I'm really sure there are too many activities where the program doesn't iterate the string or any other possible conflicts. Changing the default encoding, as you said, is dangerous because we will be hiding the problem instead of resolving it. gtk people say this on the comments in the ticket that manuq reported. We are stopping in very technical details, but you're not wrong in it. Latin1 gives one bit for all the represented characters and the supported characters aren't as many as with utf-8, it's for languages with Latin derivation. So, the right way to handle and manipulate strings is using Unicode, with the u at the beginning of each string. That is the recommended way to do it. This is not me, I mean, it is not a whim. There are many reasons to use Unicode. The right way only for handle and manipulate strings internally, and a big part of the translated strings aren't handled or manipulated by the activities, they are tasks for other libraries, preferentially GTK, and it never generates a conflict for draw and format those strings (including line wrapping), but for test it, you can make a gtk.TextView in a python console and try to write only non-ascii characters (for natural English speakers, you could generate many ´strange´ characters with the keyboard distribution English International). More information that you can read, pros and cons: * http://www.shutupandship.com/2012/01/working-with-text-in-python-use-unicode.html * http://stackoverflow.com/questions/1116449/should-i-use-unicode-string-by-default * http://blog.ianbicking.org/illusive-setdefaultencoding.html * http://nedbatchelder.com/blog/200401/printing_unicode_from_python.html * http://getpython3.com/diveintopython3/strings.html#one-ring-to-rule-them-all * http://blog.notdot.net/2010/07/Getting-unicode-right-in-Python Thanks, there is many information here for read. ~danielf ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Unicode strings in translations
2012/8/14 Martin Langhoff martin.langh...@gmail.com: Hi danielf, Hi Martin, fran...@sugarlabs.org wrote: I look some people is needing to know more about Unicode: First I'll apologize because the first part of my message sounds a bit rude. one thing to keep in mind is that UTF-8 is one of the possible ways to represent Unicode data. We will, most of the time, use UTF-8 mixed up with straight old ASCII. Our python code files are one example. Yes, I know UTF-8 is only one of the possible ways, but there is a reason to use it instead of any other. Also the python code files could be ASCII and the header line could say utf-8. The line tells Python the charset for encode the strings. The BOM header didn't become popular (for good technical reasons). Is there a way to tell the Python interpreter that assume that our code (inc strings in our code) should be assumed to be unicode? If so, we can set that in sugar-session. Unicode (Python Type) is for process text, but for input/output, that text will need to be encoded as a string, and for that you will need a code charset. Now it's the time to ask: Must we get all the translated strings as Unicode and encode them as utf-8? I think there are too few cases when an activity gets translated strings and needs to work directly with unicode. Maybe I also need to get informed, this is the good part of use a mailing list, we all know different things. Regards. ~danielf ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Unicode strings in translations
2012/8/14 Gonzalo Odiard gonz...@laptop.org: Unicode (Python Type) is for process text, but for input/output, that text will need to be encoded as a string, and for that you will need a code charset. Now it's the time to ask: Must we get all the translated strings as Unicode and encode them as utf-8? I think there are too few cases when an activity gets translated strings and needs to work directly with unicode. Probably because you do not speak chinese or any other asian language :) We can represent all unicode characters in utf-8 and that's one of the reasons Linux has it by default, of course the translations are encoded in utf-8 because it can represent characters from Asia, Africa, languages with derivation from Latin and non-existent languages. Now the question is: Why should we get translations as Python type Unicode and encode them again in utf-8? We have our translations encoded in files. The activity can get the strings directly for output, but if the activity will modify or only iterate a string, it's recommended to decode the utf-8 string and work with the text in the Python type Unicode and then encode it as a utf-8 string for use it as output. What Manuel is purposing, is setup gettext appropriately for get text of type unicode with the _ function. A big part of the translated strings don't need that step of encode and decode... ~danielf ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Unicode strings in translations
2012/8/14 Manuel Kaufmann humi...@gmail.com: The reason is given here: Software should only work with Unicode strings internally, converting to a particular encoding on output. As I said, the unicode (Python type what generated this thread), is used only internally and our link gives more sense to what I say, the output is usually coded in utf-8 (coded string). Here the translated strings are usually: - Simple arguments for a GtkWidet Example: button = ToolButton('gtk-add') button.set_tooltip(_('Append')) - Strings with format Example: button.set_tooltip(_('Append %s') % _('something')) These strings aren't processed internally, the last string depends of other programs and libraries implemented correctly (A part at the Python interpreter), they will not generate a conflict if you have only Asian characters. The unicode type at python is used in cases when the text doesn't go directly to the output and your code processes it directly. For example if you have a long string and you'd like to insert line feeds into the string. Too few strings in the Sugar Pootle are made for this, but in the case of be needing it, there are the methods unicode.encode and str.decode available and tidy at Python. Regards. ~danielf ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Unicode strings in translations
2012/8/14 Martin Langhoff martin.langh...@gmail.com: Perhaps you mean something else, like the Python type Unicode. But in general discussion, people do use Unicode to mean... Unicode ;-) Exactly, a lot of times I said unicode meaning PyUnicode, and this thread started with an issue between two different python types: str and unicode. I listened the following definitions at a talk about unicode at the PyDayUY, I trust in the speaker but it's a good time to revise, clarify concepts and take a little disambiguation: Unicode: A standard repertoire of lots of characters. (Association of numbers with letters, etc.) UTF-8: (Unicode Transfer Format). Implementation of all the unicode characters but in Bytes. The computer never works really with Unicode because all what the computer works with, need to be encoded in bytes, in this case with UTF-8. Thinking it well: Was the Python type well named Unicode? What does the people usually mean with Unicode? ~danielf ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [PATCH sugar-toolkit-gtk3] Use class-based API for gettext translations
2012/8/14 Manuel Kaufmann humi...@gmail.com: On Tue, Aug 14, 2012 at 3:49 PM, Gonzalo Odiard gonz...@laptop.org wrote: Can you explain the problem you are trying to solve and why you think this is the right solution? I sent an email yesterday commenting what the problem is and what the best solution is. Here is the thread: * http://lists.sugarlabs.org/archive/sugar-devel/2012-August/038928.html -1 I already explained my position at that thread, and my namesake dsd is also disagreeing as I can see. With this patch there is no need to change the source code of all the activities, they should work as they are. But, we can omit the import of gettext as _ because this patch installs it as a builtin function[1]: from gettext import gettext as _ For this reason, we can omit this line in new Activities. +1 Does the old import generate a conflict or the developers must use a conditional for backward compatibility? ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Unicode strings in translations
2012/8/13 Manuel Kaufmann humi...@gmail.com: Hello, I'm working on Typing Turtle Gtk3 port and I found an error with the translations encoding. The thing is we can't combine Unicode strings and 8-bits strings: Hi, Manuel. I'm not an expert in unicode, I learned a big part of what I know at the PyDay Uruguay 2012, in a talk with an Argentinian speaker. '¡Hola %s!' % 'camión' '\xc2\xa1Hola cami\xc3\xb3n!' Here it's simple and easy, this is the correct usage. In Typing Turle the _ function (from gettext import gettext as _) is returning 8-bits strings, so it crashes when it tries to do something like this: _('Congratulations! You earned a %(type)s medal!') % u'gold' [...] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 4: ordinal not in range(128) The UTF-8 encoding charset can load all the Unicode characters, and the way to do it is adding a line at the header. The unicode type is used for other cases. I don't see why do you need to use unicode in this case, you could encode all in utf-8 and forget the conflict. So, is there a way to make this available at Sugar level? This issue appears in many activities and it would be great to solve it upstream :) I know you like upstream bugs but I think it's not necessary. If the program will insert characters or similar actions, there is a way with more peace, but I'm not going to explain it now if I'm not sure this is what you need. Cheers. ~danielf ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Unicode strings in translations
2012/8/13 Gonzalo Odiard gonz...@laptop.org: You can read a utf8 encodec file with codecs.open too. http://docs.python.org/library/codecs.html Gonzalo I look some people is needing to know more about Unicode: The strings are encoded by default in ASCII, but with ASCII the computer can't represent all the unicode characters, and here appears utf-8, adding the line at the header of the file Python encodes the strings in utf-8. If we have a variable of type unicode: my_unicode = u'Hello World' you can get a string in utf-8 with the following line: utf8_string = my_unicode.encode('utf-8') for get a unicode object from a string: new_unicode = utf8_string.decode('utf-8') When do you need unicode? Some characters have 2 bytes at the memory for be represented, so at the time of iterate the string you get bytes, not characters, so it works well with 1-byte characters but it will not work as expected with the other, with unicode you can iterate by the text character by character. Code example: for i in My string with Ñ: print i M y s t r i n g w i t h � for x in [i.encode('utf-8') for i in uMy string with Ñ]: print x M y s t r i n g w i t h Ñ http://wiki.python.org/moin/Unicode Regards. ~danielf ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] #3797 localization UNSP: Update pootle strings for Graph Plotter
2012/8/12 Sugar Labs Bugs bugtracker-nore...@sugarlabs.org: Comment: I fixed it manually. When you touch files in the /po dir in Gitorious it gets out of synch with the local copy that Pootle holds (and uses to recalculate the POT template) and this causes a failure to update the POT. The POT is now up- to-date in Poolte and commits from Pootle will work (instead of fail). Closing as fixed. cjl I forgot to say I'm sorry. I prefer asking it out of bugs.sl.org: I'm looking the Spanish translations on pootle and the new strings aren't there. Is pootle going to check my activity and make a new pot file? or it isn't completely ´fixed´? I note I received a commit from pootle with a small change at the file header. Cheers. ~danielf ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Idea for a New Activity in Sugar: To code and run C, C++ programs
Hi Kartik, 2012/8/5 Kartik Kumar kartik.p...@gmail.com: Hi All, I was thinking of an Activity for Sugar using which children can write programs in C and C++ and execute them. I think C/C++ aren't so easy for children, Python is better to introduce programming on children. But I really appreciate you are interested in it, I started learning Python about 2 years ago when I was 11-12 years old and I know it isn't impossible, last year I learned a few of C but I can do the same things with Python more easily, and my C programs often finished in Segmentation Fault, that's not very motivating. This is similar to Pippy activity but this activity will use GCC for compilation and execution of these programs created by children. Maybe you already know C components aren't recommended at the Sugar activities, when there's C code for speed, I always suggest to compile for i386 (architecture of XO-1.0 and XO-1.5) and use a conditional for load an alternative module written in Python on other architectures. But there isn't so easy re-write Gcc in Python... We can present them with such features: 1. Use pre-existing code snippets( from Journal) 2. Write custom code 3. Compilation and Execution Please provide your inputs whether this seems useful with classroom perspective and is worth taking it further? There are too few Teachers-Programmers for teach it, and there are few students with the necessary will, intelligence and interest for learn C. You generated in me an idea: would be good an activity for write/test web developments, that could be more easy and motivating than C, and there are more people qualified for teach it. Many people say the Web development has got a big future. Cheers. ~danielf ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Idea for a New Activity in Sugar: To code and run C, C++ programs
2012/8/5 Kartik Kumar kartik.p...@gmail.com: Thanks Daniel for your valuable feedback! I agree with you that C will be bit complex in the begining and it is difficult to write Gcc in python. I appreciate the idea of activity for web development. I am very much exicted and inspired to explore on how we can go about it and develop it. To add to what you mentioned, we can provide an IDE as an activity where children can develop HTML pages and develop even entire web application in python. We can also explore if DJango(web application framework in python) can be used in this context. Sounds good, I like Django, but talking about the interface, it'll need a big organization because there are too many features to be added so you are right in start now to think in that. I suggest to make GUI editing interfaces for some python files, for example the server requests where the children could feel a few lost editing it directly. I'd leave Html/Javascript code for the children freestyle creation, maybe a possibility for switch between a code mode and a more graphic mode (your idea of the rich html component library would enter here), but it implies there'll be needed examples where the children can learn the usage. I can't reply much more design feedback at the moment, I never designed a so big activity and I don't know a lot of Django (I started to read a few about it some weeks ago), but I'm interested in follow nearly this thread. Regards! ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [PATCH sugar-artwork] Add help icon for the toolbars - SL #3746
2012/7/28 Manuel Quiñones ma...@laptop.org: So activities have a standard help icon for their toolbar moving forward. Design-by: Gary C. Martin garycmar...@googlemail.com Signed-off-by: Manuel Quiñones ma...@laptop.org --- icons/scalable/actions/toolbar-help.svg | 32 +++ 1 file changed, 32 insertions(+) create mode 100644 icons/scalable/actions/toolbar-help.svg diff --git a/icons/scalable/actions/toolbar-help.svg b/icons/scalable/actions/toolbar-help.svg new file mode 100644 index 000..36f763c --- /dev/null +++ b/icons/scalable/actions/toolbar-help.svg @@ -0,0 +1,32 @@ +?xml version=1.0 ?!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' +'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd' [ + !ENTITY stroke_color #ff + !ENTITY fill_color #010101 +] + +svg height=55px viewBox=0 0 55 55 width=55px +xmlns=http://www.w3.org/2000/svg; +xmlns:xlink=http://www.w3.org/1999/xlink; + + g +path d=M27.5,50.125 C15.157,50.125 5,39.968 5,27.625 C5,15.282 +15.157,5.125 27.5,5.125 C39.843,5.125 50,15.282 50,27.625 +C49.837,40.071 40.412,49.484 28.077,50.118 z M27.01,34.768 +C28.452,34.839 29.871,34.056 30.301,32.622 C30.538,31.831 +30.438,30.811 30.438,30.048 C32.901,29.422 35.315,28.194 +36.775,26.041 C38.635,23.299 38.692,19.361 37.139,16.471 +C35.241,12.938 31.3,11.4 27.467,11.326 C25.327,11.363 +23.184,11.958 21.331,13.036 C19.004,14.391 16.92,16.931 +17.59,19.785 C17.767,20.537 18.189,21.24 18.866,21.638 +C21.301,23.068 23.001,20.116 24.478,18.753 C25.357,17.943 +26.602,17.383 27.82,17.553 C29.264,17.754 30.642,18.618 +31.073,20.071 C31.224,20.581 31.229,21.118 31.155,21.642 +C30.908,23.4 29.517,24.191 27.938,24.685 C26.56,25.116 +24.024,25.251 23.956,27.167 L23.957,27.167 L23.957,31.667 +C23.947,33.36 25.073,34.466 26.649,34.738 z M27.016,44.444 +C28.993,44.54 30.706,42.921 30.706,40.937 C30.706,38.99 +29.106,37.475 27.196,37.427 C25.253,37.431 23.54,39.139 +23.691,41.117 C23.823,42.857 24.98,44.062 26.662,44.408 z +fill=stroke_color; stroke=none/ + /g +/svg -- 1.7.10.4 ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel I'm a few happy having that icon in sugar-artwork, I appreciate you didn't exceed 80 characters per line, this patch can be seen very well unlike my last patch for the Sugar icons were the icons had long lines and I didn't correct them. Would be good have standard code styles for SVG icons and other non-python components. Cheers. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [PATCH sugar-artwork] Add help icon for the toolbars - SL #3746
2012/7/28 Manuel Quiñones ma...@laptop.org: Hey Dani, Bah, not a big deal, don't worry much about that. SVG will be difficult to read anyways, I just wrapped the lines because git was refusing to send it with 'git send-email'. Because there was a line above 900 characters long :) Yeah, that is a long path and possibly nobody could understand the patch well, but for example, I made a patch which changes only colours (fill=), the patch could only have something like this: - fill=#33 stroke=#FF + fill=none; stroke=#FF But the patch had very long, lines and turned it more hardy to read. Have you tested it? If so, tell me so I can add the 'Tested-by' line, or do it yourself in this email. Works, I tested it on Sugar Build, removing the help icon in Graph Plotter. Tested-by: Daniel Francis fran...@sugarlabs.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [PATCH sugar-artwork] Add help icon for the toolbars - SL #3746
2012/7/28 Frederick Grose fgr...@gmail.com: Would be good have standard code styles for SVG icons and other non-python components. There is this page, http://wiki.sugarlabs.org/go/Development_Team/Almanac/Making_Icons with reference to http://wiki.laptop.org/go/media:_sugar-iconify.py Thanks Frederick, but I'm talking about code style, patches for python code aren't accepted without Pep8, but SVG patches haven't checked any style guideline. And I'm not sure if it's also similar for C, CSS patches and other non-python components in Sugar. Cheers. -danielf ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [Design] Proposal on some Help toolbar design details
2012/7/27 Gary C Martin garycmar...@googlemail.com: Hi folks, To follow up on this previous thread, several activities are now following this help proposal. I've put a simple HIG page together to cover the design for Activity authors [1]. If there are no objections I'll place it somewhere more formal (perhaps as a first step in updating the old HIG with all the design changes that have landed in Sugar in the last few years). Regards, --Gary Hi Gary, Just I moved the HelpButton in my Graph Plotter[1], my activity had the following organization: [Activity][View][Custom1][Custom2][Custom3][Custom4 (Text Entry)][Very Custom 5 (Ghost coordinates)] ... [Help][Stop] If the cursor isn't on the Graph, the coordinates x-y values disappear. If the labels disappear, the help button would look a few ugly on the right of the ghost content. So, I had to make a custom organization for that case. I updated the screenshot in the wiki where you can see the new organization. I think this would be a good example of the new helpbutton position, or an example about what is not correct and must be changed. What do you think about that case? Cheers. [1] http://wiki.sugarlabs.org/go/Activities/Graph_Plotter ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [ANNOUNCE] Design meeting Monday July 23rd 2012 - 14:30 UTC 1hr
2012/7/19 Gary Martin garycmar...@googlemail.com: Provisional agenda * Journal multi-select I have School at 14:30 UTC, so I tell now my position about the Journal multi-select implementation. The function is very useful here in Uruguay, it's necessary in Sugar. But I think the UI implementation isn't the best. It has two toggle cell renderers one next to the other (I consider the star a toggle cell). A better way would be use the TreeSelection. But if the agreed implemented interface is with CheckBoxes, I would suggest to move the ToogleStar to the right, with the following organization. [[Checker] [Icon] . [Buddies] . . . . . [Last modified] [Star] ()] Cheers. -danielf ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [ANNOUNCE] Design meeting Monday July 23rd 2012 - 14:30 UTC 1hr
Could you describe a little more what you mean by TreeSelection About the Tree Selection, as you'll possibly know, the Journal was migrated from HippoCanvas to Gtk as a GtkTreeView. The GtkTreeSelection is for customize selections in GtkTreeViews: http://python-gtk-3-tutorial.readthedocs.org/en/latest/treeview.html#the-selection The starter idea about this was by Agustin Zubiaga (aguz), I tell the part I agree, but he has projected all the details for a purpose similar than the interface you describe, Gary. Personally, I don't like 'ghost' toolbars[1] in Sugar, but the buttons need a place, maybe a Sugar ToolbarButton and the property 'expanded' set to True and why not take advantage of that button for also enable/disable the MultiSelect mode. Cheers. [1] When all the buttons of the toolbar change for other different options. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [ASLO] Problem with number of version
2012/7/18 Alan Jhonn Aguiar Schwyn alan...@hotmail.com: Works. The problem is the dot in the activity version. Maybe all xx.x activities must will updated to xx+1 Regards! Alan The better in this case would be: xx+1(same as gtk3 version) in the activity.info and xx.x in ASLO. But I suppose it would also require some extra work on the ASLO web platform. A good possibility would be make a new variable at the activity.info file. I guess Sugar can ignore it. Cheers. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] [DESIGN Browse] Show web page icons
A little feature which could be added in Browse: Show the web page icons. After talk with Gary by IRC, I confirmed that feature wasn't removed from the activity previously, and maybe show the page icon in the tab like the standard web browsers, could be 'noisy'. I purpose the following possibilities: - Decide icons in the tabs aren't noisy and show the page icons in the tabs. It also would help to identify the web pages. - Show the page icon only in the history. In this case the 'Back' and 'Next' palettes/menus. - Show the icon of the current tab in the URL entry at the left. - Combinations of the previously mentioned purposes. Cheers, Daniel Francis. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [PATCH sugar-artwork] Zoom icons: Removing grey fill color
2012/7/13 Gary Martin garycmar...@googlemail.com: Thanks for the patches! I've not had time to review them yet, design review on svg diff patches sent to the mail list is a petty slow work-flow for me to actually get to see the end result ;) Yeah, this is the first time I make a patch for Sugar Design, but I agree sending patches like any other component in Sugar isn't the best way. So, I made a little article[1] in the Wiki with the affected activities and screenshots with and without my patch where you can see quickly the differences. Regards, danielf. [1] http://wiki.sugarlabs.org/go/User:Daniel_Francis/Remove_grey_fill_color ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [PATCH sugar-artwork] Zoom icons: Removing grey fill color
I made a new patch with similar changes, but for the table/cell icons, also mailed to this list. Cheers. 2012/7/13 Gonzalo Odiard gonz...@laptop.org: Maybe Gary or Manuq can look at this issue? Gonzalo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] Two strange files in sugar-toolkit-gtk3
Hi, I was looking at the sources of sugar-toolkit-gtk3 and y found the following 'strange' things to comment or ask why there are in sugar-toolkit: First: The module sugar.graphics.panel with this code: class Panel(Gtk.VBox): __gtype_name__ = 'SugarPanel' def __init__(self): GObject.GObject.__init__(self) I think we can't be so children for make a class and only inherit from Gtk.VBox. I would suggest to remove it. The other is the module sugar.graphics.toolbox , those toolbars-notebooks are too deprecated. Could we have only the Sugar ToolbarBox in sugar-toolkit-gtk3? Cheers, DanielF. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [PATCH Speak] A lot of pep8 corrections
2012/6/29 Gonzalo Odiard gonz...@laptop.org: Great! Please coordinate with the activity maintainer. I think is Aleksey, but Rafael (dirakx) should know better. To migrate from hippo to gtk, look at the work done in Chat activity. I am sure a big part can be used. Gonzalo Alright, thanks. I'll ask Rafael about the maintainer and I'll also consider Chat activity in the moment of remove the Hippo code. Best regards, DanielF. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [PATCH sugar-toolkit-gtk3] Fixing deprecations: Using Gtk.Orientation
[1] states for example: GtkHBox has been deprecated. You can use GtkBox instead, which is a very quick and easy change. If you have derived your own classes from GtkHBox, you can simply change the inheritance to derive directly from GtkBox. No further changes are needed, since the default value of the orientation property is GTK_ORIENTATION_HORIZONTAL. If you want your code to be future-proof, the recommendation is to switch to GtkGrid, since GtkBox is going to be deprecated in favor of the more flexible grid widget eventually. For more information about migrating to GtkGrid, see Migrating from other containers to GtkGrid. Why not? Lets migrate all our gtk3 components to GtkGrid! So the first question that arises is: should we switch directly to GtkGrid [2]? Best would be to do a simple test program and compare the different containers. If GtkGrid can be used in the same way and it is the intended way forward we should switch directly to that. The migrating guide is interesting as well [3]. Your articles say the ways to do it with GtkGrid are very different than with GtkBox, but it's similar than the GtkTable. I can make another patch with the migration from GtkBox and GtkTable to GtkGrid and add the information to the Wiki [1], but this patch hasn't got only corrections of boxes. You decide if I have to make from this patch a version 2, or make a new patch only with boxes and tables corrections. Cheers. [1] http://wiki.sugarlabs.org/go/Features/GTK3/Porting Regards, Simon [1] http://developer.gnome.org/gtk3/3.4/GtkHBox.html [2] http://developer.gnome.org/gtk3/3.4/GtkGrid.html [3] http://developer.gnome.org/gtk3/3.4/gtk-migrating-GtkGrid.html On 06/27/2012 04:56 AM, Daniel Francis wrote: --- src/sugar3/activity/widgets.py | 3 ++- src/sugar3/graphics/alert.py | 9 ++--- src/sugar3/graphics/notebook.py | 6 -- src/sugar3/graphics/palette.py | 27 +++ src/sugar3/graphics/panel.py | 3 ++- src/sugar3/graphics/radiopalette.py | 3 ++- src/sugar3/graphics/toolbarbox.py | 3 ++- src/sugar3/graphics/toolbox.py | 6 -- src/sugar3/graphics/toolcombobox.py | 3 ++- src/sugar3/graphics/tray.py | 6 -- src/sugar3/graphics/window.py | 6 -- 11 files changed, 51 insertions(+), 24 deletions(-) diff --git a/src/sugar3/activity/widgets.py b/src/sugar3/activity/widgets.py index c4015ce..ffb3503 100644 --- a/src/sugar3/activity/widgets.py +++ b/src/sugar3/activity/widgets.py @@ -226,7 +226,8 @@ class DescriptionItem(Gtk.ToolItem): description_button.set_tooltip(_('Description')) self._palette = description_button.get_palette() - description_box = Gtk.HBox() + description_box = Gtk.Box() + description_box.set_orientation(Gtk.Orientation.HORIZONTAL) sw = Gtk.ScrolledWindow() sw.set_size_request(int(Gdk.Screen.width() / 2), 2 * style.GRID_CELL_SIZE) diff --git a/src/sugar3/graphics/alert.py b/src/sugar3/graphics/alert.py index 16392cd..358fea4 100644 --- a/src/sugar3/graphics/alert.py +++ b/src/sugar3/graphics/alert.py @@ -97,11 +97,13 @@ class Alert(Gtk.EventBox): self._icon = None self._buttons = {} - self._hbox = Gtk.HBox() + self._hbox = Gtk.Box() + self._hbox.set_orientation(Gtk.Orientation.HORIZONTAL) self._hbox.set_border_width(style.DEFAULT_SPACING) self._hbox.set_spacing(style.DEFAULT_SPACING) - self._msg_box = Gtk.VBox() + self._msg_box = Gtk.Box() + self._msg_box.set_orientation(Gtk.Orientation.VERTICAL) self._title_label = Gtk.Label() self._title_label.set_alignment(0, 0.5) self._msg_box.pack_start(self._title_label, False, False, 0) @@ -111,7 +113,8 @@ class Alert(Gtk.EventBox): self._msg_box.pack_start(self._msg_label, False, False, 0) self._hbox.pack_start(self._msg_box, False, False, 0) - self._buttons_box = Gtk.HButtonBox() + self._buttons_box = Gtk.ButtonBox() + self._buttons_box.set_orientation(Gtk.Orientation.HORIZONTAL) self._buttons_box.set_layout(Gtk.ButtonBoxStyle.END) self._buttons_box.set_spacing(style.DEFAULT_SPACING) self._hbox.pack_start(self._buttons_box, True, True, 0) diff --git a/src/sugar3/graphics/notebook.py b/src/sugar3/graphics/notebook.py index e14bf0e..0f3e858 100644 --- a/src/sugar3/graphics/notebook.py +++ b/src/sugar3/graphics/notebook.py @@ -74,7 +74,8 @@ class Notebook(Gtk.Notebook): raise AssertionError def _add_icon_to_button(self, button): - icon_box = Gtk.HBox() + icon_box = Gtk.Box() + icon_box.set_orientation(Gtk.Orientation.HORIZONTAL) image = Gtk.Image() image.set_from_stock(Gtk.STOCK_CLOSE, Gtk.IconSize.MENU)
Re: [Sugar-devel] [PATCH] Help Button with useful commands
Great! I think the help must be only the utility and the description. In the start/end (I'm not sure), a paragraph describing something like 'Type: {command} --help to see it's usage' Regards, DanielF. 2012/6/21 Agustin Zubiaga a...@sugarlabs.org: Gonzalo's button ported to GTK3 Bugs: Wrap mode doesn't work Grey background Signed-off-by: Agustin Zubiaga a...@sugarlabs.org --- helpbutton.py | 85 +++ icons/help-icon.svg | 14 + terminal.py | 33 3 files changed, 132 insertions(+) create mode 100644 helpbutton.py create mode 100644 icons/help-icon.svg diff --git a/helpbutton.py b/helpbutton.py new file mode 100644 index 000..1f01851 --- /dev/null +++ b/helpbutton.py @@ -0,0 +1,85 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# Copyright (C) 2012, Gonzalo Odiard godi...@gmail.com + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +# HelpButton widget + +from gettext import gettext as _ + +from gi.repository import Gtk +from gi.repository import Gdk +from gi.repository import GObject + +from sugar3.graphics.toolbutton import ToolButton +from sugar3.graphics.icon import Icon +from sugar3.graphics import style + + +class HelpButton(Gtk.ToolItem): + + def __init__(self, **kwargs): + GObject.GObject.__init__(self) + + help_button = ToolButton('help-icon') + help_button.set_tooltip(_('Help')) + self.add(help_button) + + self._palette = help_button.get_palette() + + sw = Gtk.ScrolledWindow() + sw.set_size_request(int(Gdk.Screen.width() / 2.8), + Gdk.Screen.height() - style.GRID_CELL_SIZE * 3) + sw.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC) + + self._max_text_width = int(Gdk.Screen.width() / 3) - 600 + self._vbox = Gtk.VBox() + self._vbox.set_homogeneous(False) + + hbox = Gtk.HBox() + hbox.pack_start(self._vbox, False, True, 0) + + sw.add_with_viewport(hbox) + + self._palette.set_content(sw) + sw.show_all() + + help_button.connect('clicked', self.__help_button_clicked_cb) + + def __help_button_clicked_cb(self, button): + self._palette.popup(immediate=True, state=1) + + def add_section(self, section_text): + hbox = Gtk.HBox() + label = Gtk.Label() + label.set_use_markup(True) + label.set_markup('b%s/b' % section_text) + label.set_line_wrap(True) + hbox.pack_start(label, False, False, 0) + hbox.show_all() + self._vbox.pack_start(hbox, False, False, padding=5) + + def add_paragraph(self, text, icon=None): + hbox = Gtk.HBox() + label = Gtk.Label(label=text) + label.set_justify(Gtk.Justification.LEFT) + label.set_line_wrap(True) + hbox.pack_start(label, False, False, 0) + if icon is not None: + _icon = Icon(icon_name=icon) + hbox.add(_icon) + hbox.show_all() + self._vbox.pack_start(hbox, False, False, padding=5) diff --git a/icons/help-icon.svg b/icons/help-icon.svg new file mode 100644 index 000..f6c92bf --- /dev/null +++ b/icons/help-icon.svg @@ -0,0 +1,14 @@ +?xml version=1.0 encoding=UTF-8? +svg xmlns=http://www.w3.org/2000/svg; version=1.1 width=55px height=55px + path + style=fill:none;stroke:#ff;stroke-width:3;stroke-linejoin:round + d=M 48,28 A 20,20 0 1 1 8,28 A 20,20 0 1 1 48,28 z/ + path + style=fill:none;stroke:#ff;stroke-width:6;stroke-linecap:round;stroke-linejoin:round + d=M 22,20 C 22,20 25,17 29,17 C 33,17 36,19 36,23 C 36,27 31,29 28,29 L 28,32 / + path + style=fill:#ff + d=M 25,40 + a 3,3 0 1 1 6,0 + a 3,3 0 1 1 -6,0 z / +/svg diff --git a/terminal.py b/terminal.py index a37e2ac..803fed9 100644 --- a/terminal.py +++ b/terminal.py @@ -42,6 +42,9 @@ from sugar3 import env from widgets import BrowserNotebook from widgets import TabLabel +from helpbutton import HelpButton + + MASKED_ENVIRONMENT = [ 'DBUS_SESSION_BUS_ADDRESS', 'PPID'] @@ -104,6 +107,10 @@ class TerminalActivity(activity.Activity):
Re: [Sugar-devel] [PATCH Terminal] Drag And Drop from Clipboard / Uncomment some lines from Gtk3 Port
2012/6/19 Manuel Kaufmann humi...@gmail.com On Tue, Jun 19, 2012 at 2:10 PM, Daniel Francis fran...@sugarlabs.org wrote: The port to GTK3 is finished with this patch. Solved the drag and drop clipboard utility. This is really really good to read! There is a problem here, this is what I'm getting when I try to start the Terminal Activity: This is strange, because it's working very well in my computer, I'll try it on my XO. File /home/humitos/Activities/Terminal.activity/terminal.py, line 151, in _update_accelerators self._update_accelerators(child.get_page()) This method is called to solve this bug http://dev.laptop.org/ticket/10930, but I commented this line and the accelerators work perfectly, try to comment the line 121 in terminal.py and tell us. Cheers. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [PATCH Terminal] Drag And Drop from Clipboard / Uncomment some lines from Gtk3 Port
On the XO-1.75, I got the same error as AguZ and Humitos, So, I'll make a new patch without the line and the method and commit it directly. Regards, DanielF. 2012/6/19 Rafael Ortiz raf...@activitycentral.com On Tue, Jun 19, 2012 at 1:57 PM, Agustin Zubiaga Sanchez a...@sugarlabs.org wrote: Hi. I feel happy about your patch, but I'm getting the same message :( I also tried to comment that method and works perfectly, maybe it was solved in GTK3. Regards, aguz 2012/6/19 S. Daniel Francis fran...@sugarlabs.org 2012/6/19 Manuel Kaufmann humi...@gmail.com On Tue, Jun 19, 2012 at 2:10 PM, Daniel Francis fran...@sugarlabs.org wrote: The port to GTK3 is finished with this patch. Solved the drag and drop clipboard utility. This is really really good to read! There is a problem here, this is what I'm getting when I try to start the Terminal Activity: This is strange, because it's working very well in my computer, I'll try it on my XO. File /home/humitos/Activities/Terminal.activity/terminal.py, line 151, in _update_accelerators self._update_accelerators(child.get_page()) This method is called to solve this bug http://dev.laptop.org/ticket/10930 , but I commented this line and the accelerators work perfectly, try to comment the line 121 in terminal.py and tell us. Cheers. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel Curious, I'm also not getting the error as Daniel describes. Daniel how did your test on the XO went?. Thanks. -- ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [PATCH Terminal] Drag And Drop from Clipboard / Uncomment some lines from Gtk3 Port
Commited as: http://git.sugarlabs.org/terminal/mainline/commit/9052568414547e260975b1525446ef072483947b And corrected the commit with this other: http://git.sugarlabs.org/terminal/mainline/commit/12863e8ddb032bccee57a591bd2422f65ad63b1a Rafael, I think this is the time to put the branches correctly, with the Gtk3 version in the mainline and make a new version with the changes. Cheers, DanielF. 2012/6/19 S. Daniel Francis fran...@sugarlabs.org On the XO-1.75, I got the same error as AguZ and Humitos, So, I'll make a new patch without the line and the method and commit it directly. Regards, DanielF. 2012/6/19 Rafael Ortiz raf...@activitycentral.com On Tue, Jun 19, 2012 at 1:57 PM, Agustin Zubiaga Sanchez a...@sugarlabs.org wrote: Hi. I feel happy about your patch, but I'm getting the same message :( I also tried to comment that method and works perfectly, maybe it was solved in GTK3. Regards, aguz 2012/6/19 S. Daniel Francis fran...@sugarlabs.org 2012/6/19 Manuel Kaufmann humi...@gmail.com On Tue, Jun 19, 2012 at 2:10 PM, Daniel Francis fran...@sugarlabs.org wrote: The port to GTK3 is finished with this patch. Solved the drag and drop clipboard utility. This is really really good to read! There is a problem here, this is what I'm getting when I try to start the Terminal Activity: This is strange, because it's working very well in my computer, I'll try it on my XO. File /home/humitos/Activities/Terminal.activity/terminal.py, line 151, in _update_accelerators self._update_accelerators(child.get_page()) This method is called to solve this bug http://dev.laptop.org/ticket/10930 , but I commented this line and the accelerators work perfectly, try to comment the line 121 in terminal.py and tell us. Cheers. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel Curious, I'm also not getting the error as Daniel describes. Daniel how did your test on the XO went?. Thanks. -- ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [PATCH Terminal] Drag And Drop from Clipboard / Uncomment some lines from Gtk3 Port
I already changed it to fixed/closed. Cheers. 2012/6/19 Rafael Ortiz raf...@activitycentral.com On Tue, Jun 19, 2012 at 5:34 PM, S. Daniel Francis fran...@sugarlabs.orgwrote: Commited as: http://git.sugarlabs.org/terminal/mainline/commit/9052568414547e260975b1525446ef072483947b And corrected the commit with this other: http://git.sugarlabs.org/terminal/mainline/commit/12863e8ddb032bccee57a591bd2422f65ad63b1a Rafael, I think this is the time to put the branches correctly, with the Gtk3 version in the mainline and make a new version with the changes. I think that still we have a serious regression on SL#3655 after that we can make an stable gtk3 release. Cheers, DanielF. 2012/6/19 S. Daniel Francis fran...@sugarlabs.org On the XO-1.75, I got the same error as AguZ and Humitos, So, I'll make a new patch without the line and the method and commit it directly. Regards, DanielF. 2012/6/19 Rafael Ortiz raf...@activitycentral.com On Tue, Jun 19, 2012 at 1:57 PM, Agustin Zubiaga Sanchez a...@sugarlabs.org wrote: Hi. I feel happy about your patch, but I'm getting the same message :( I also tried to comment that method and works perfectly, maybe it was solved in GTK3. Regards, aguz 2012/6/19 S. Daniel Francis fran...@sugarlabs.org 2012/6/19 Manuel Kaufmann humi...@gmail.com On Tue, Jun 19, 2012 at 2:10 PM, Daniel Francis fran...@sugarlabs.org wrote: The port to GTK3 is finished with this patch. Solved the drag and drop clipboard utility. This is really really good to read! There is a problem here, this is what I'm getting when I try to start the Terminal Activity: This is strange, because it's working very well in my computer, I'll try it on my XO. File /home/humitos/Activities/Terminal.activity/terminal.py, line 151, in _update_accelerators self._update_accelerators(child.get_page()) This method is called to solve this bug http://dev.laptop.org/ticket/10930 , but I commented this line and the accelerators work perfectly, try to comment the line 121 in terminal.py and tell us. Cheers. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel Curious, I'm also not getting the error as Daniel describes. Daniel how did your test on the XO went?. Thanks. -- ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [DESIGN] Terminal activity, become root functionality issues
2012/6/19 Rafael Ortiz raf...@activitycentral.com On Tue, Jun 19, 2012 at 5:38 PM, Manuel Quiñones ma...@laptop.org wrote: Forgot to raise this in today's Dev Meeting. Become root presents the following issues. Should we just remove it? Sometime ago I voted on removing it, but IIRC the counter argument was that some teachers used it frequently to install programs that need root access. and they are adjusted on just clicking the button instead of writing ''su''. What is the gain of having it, isn't just a shortcut for manually writting su? +1, there is not root access in some builds (old Uruguayan builds for example), if the teachers doesn't remember the command su, they can take a note in a peace of paper. We also can add a HelpWidget like Chart Activity and write a comment about the su command. Cheers, DanielF. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] [PATCH Terminal] Don't save a data file in journal
This patch is temporary until we solve the problem with the method Vte.Terminal.get_text Signed-off-by: Daniel Francis fran...@sugarlabs.org --- terminal.py | 65 ++- 1 file changed, 33 insertions(+), 32 deletions(-) diff --git a/terminal.py b/terminal.py index 6918e3f..16d39f5 100644 --- a/terminal.py +++ b/terminal.py @@ -467,38 +467,39 @@ class TerminalActivity(activity.Activity): self._next_tab_button.props.sensitive = True def write_file(self, file_path): -if not self.metadata['mime_type']: -self.metadata['mime_type'] = 'text/plain' - -data = {} -data['current-tab'] = self._notebook.get_current_page() -data['tabs'] = [] - -for i in range(self._notebook.get_n_pages()): -page = self._notebook.get_nth_page(i) - -def selected_cb(terminal, c, row, cb_data): -return 1 -scrollback_text = page.vt.get_text(selected_cb, False) - -scrollback_lines = scrollback_text.split('\n') - -# Note- this currently gets the child's initial environment -# rather than the current environment, making it not very useful. -environment = open('/proc/%d/environ' % - page.pid, 'r').read().split('\0') - -cwd = os.readlink('/proc/%d/cwd' % page.pid) - -tab_state = {'env': environment, 'cwd': cwd, - 'scrollback': scrollback_lines} - -data['tabs'].append(tab_state) - -fd = open(file_path, 'w') -text = simplejson.dumps(data) -fd.write(text) -fd.close() +return +#if not self.metadata['mime_type']: +#self.metadata['mime_type'] = 'text/plain' +# +#data = {} +#data['current-tab'] = self._notebook.get_current_page() +#data['tabs'] = [] +# +#for i in range(self._notebook.get_n_pages()): +#page = self._notebook.get_nth_page(i) +# +#def selected_cb(terminal, c, row, cb_data): +#return 1 +#scrollback_text = page.vt.get_text(selected_cb, False) +# +#scrollback_lines = scrollback_text.split('\n') +# +## Note- this currently gets the child's initial environment +## rather than the current environment, making it not very useful. +#environment = open('/proc/%d/environ' % +# page.pid, 'r').read().split('\0') +# +#cwd = os.readlink('/proc/%d/cwd' % page.pid) +# +#tab_state = {'env': environment, 'cwd': cwd, +# 'scrollback': scrollback_lines} +# +#data['tabs'].append(tab_state) +# +#fd = open(file_path, 'w') +#text = simplejson.dumps(data) +#fd.write(text) +#fd.close() def _get_conf(self, conf, var, default): if conf.has_option('terminal', var): -- 1.7.10.2 ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [PATCH Terminal] Don't save a data file in journal
Commited as: http://git.sugarlabs.org/terminal/mainline/commit/5bff52765091225a1ef4095812064337c0b48dd3 Cheers. 2012/6/4 S. Daniel Francis fran...@sugarlabs.org: This patch is temporary until we solve the problem with the method Vte.Terminal.get_text Signed-off-by: Daniel Francis fran...@sugarlabs.org --- terminal.py | 65 ++- 1 file changed, 33 insertions(+), 32 deletions(-) diff --git a/terminal.py b/terminal.py index 6918e3f..16d39f5 100644 --- a/terminal.py +++ b/terminal.py @@ -467,38 +467,39 @@ class TerminalActivity(activity.Activity): self._next_tab_button.props.sensitive = True def write_file(self, file_path): -if not self.metadata['mime_type']: -self.metadata['mime_type'] = 'text/plain' - -data = {} -data['current-tab'] = self._notebook.get_current_page() -data['tabs'] = [] - -for i in range(self._notebook.get_n_pages()): -page = self._notebook.get_nth_page(i) - -def selected_cb(terminal, c, row, cb_data): -return 1 -scrollback_text = page.vt.get_text(selected_cb, False) - -scrollback_lines = scrollback_text.split('\n') - -# Note- this currently gets the child's initial environment -# rather than the current environment, making it not very useful. -environment = open('/proc/%d/environ' % - page.pid, 'r').read().split('\0') - -cwd = os.readlink('/proc/%d/cwd' % page.pid) - -tab_state = {'env': environment, 'cwd': cwd, - 'scrollback': scrollback_lines} - -data['tabs'].append(tab_state) - -fd = open(file_path, 'w') -text = simplejson.dumps(data) -fd.write(text) -fd.close() +return +#if not self.metadata['mime_type']: +#self.metadata['mime_type'] = 'text/plain' +# +#data = {} +#data['current-tab'] = self._notebook.get_current_page() +#data['tabs'] = [] +# +#for i in range(self._notebook.get_n_pages()): +#page = self._notebook.get_nth_page(i) +# +#def selected_cb(terminal, c, row, cb_data): +#return 1 +#scrollback_text = page.vt.get_text(selected_cb, False) +# +#scrollback_lines = scrollback_text.split('\n') +# +## Note- this currently gets the child's initial environment +## rather than the current environment, making it not very useful. +#environment = open('/proc/%d/environ' % +# page.pid, 'r').read().split('\0') +# +#cwd = os.readlink('/proc/%d/cwd' % page.pid) +# +#tab_state = {'env': environment, 'cwd': cwd, +# 'scrollback': scrollback_lines} +# +#data['tabs'].append(tab_state) +# +#fd = open(file_path, 'w') +#text = simplejson.dumps(data) +#fd.write(text) +#fd.close() def _get_conf(self, conf, var, default): if conf.has_option('terminal', var): -- 1.7.10.2 ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] [PATCH Terminal] The same tabs as browse
Signed-off-by: Daniel Francis fran...@sugarlabs.org Signed-off-by: Agustin Zubiaga a...@sugarlabs.org --- icons/close-tab.svg | 27 ++ terminal.py | 42 ++- widgets.py | 150 +++ 3 files changed, 206 insertions(+), 13 deletions(-) create mode 100644 icons/close-tab.svg create mode 100644 widgets.py diff --git a/icons/close-tab.svg b/icons/close-tab.svg new file mode 100644 index 000..782ad24 --- /dev/null +++ b/icons/close-tab.svg @@ -0,0 +1,27 @@ +?xml version=1.0 encoding=UTF-8? +!DOCTYPE svg PUBLIC -//W3C//DTD SVG 1.1//EN http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd; [ + !ENTITY fill_color #FF + !ENTITY stroke_color #010101 +] +svg + xmlns=http://www.w3.org/2000/svg; + version=1.1 + width=22.16 + height=22.16 + viewBox=0 0 22.16 22.16 + id=browse-close-tab + xml:space=preserve + g + transform=matrix(1.3,0,0,1.3,-3.2682282,-3.3351543) + id=browse-dialog-cancel + style=stroke:fill_color;;stroke-width:2.69230771;stroke-miterlimit:4;stroke-dasharray:none + path + d=M 14.798121,7.2131543 6.9900671,15.021208 + id=path2986 + style=fill:none;stroke:fill_color;;stroke-width:2.69230771;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none / + path + d=M 6.9900671,7.2131543 14.798121,15.021208 + id=path3756 + style=fill:none;stroke:fill_color;;stroke-width:2.69230771;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none / + /g +/svg diff --git a/terminal.py b/terminal.py index 0ba2871..6918e3f 100644 --- a/terminal.py +++ b/terminal.py @@ -32,7 +32,6 @@ from gi.repository import Pango from sugar3.graphics.toolbutton import ToolButton from sugar3.graphics.toolbarbox import ToolbarBox from sugar3.graphics.toolbarbox import ToolbarButton -from sugar3.graphics.notebook import Notebook from sugar3.activity.widgets import EditToolbar from sugar3.activity.widgets import ActivityToolbarButton @@ -40,6 +39,9 @@ from sugar3.activity.widgets import StopButton from sugar3.activity import activity from sugar3 import env +from widgets import BrowserNotebook +from widgets import TabLabel + MASKED_ENVIRONMENT = [ 'DBUS_SESSION_BUS_ADDRESS', 'PPID'] @@ -118,7 +120,8 @@ class TerminalActivity(activity.Activity): toolbar_box.show() self._update_accelerators(toolbar_box) - self._notebook = Notebook() + self._notebook = BrowserNotebook() + self._notebook.connect(tab-added, self.__open_tab_cb) self._notebook.set_property(tab-pos, Gtk.PositionType.TOP) self._notebook.set_scrollable(True) self._notebook.show() @@ -248,17 +251,24 @@ class TerminalActivity(activity.Activity): index = self._create_tab(None) self._notebook.page = index if self._notebook.get_n_pages() == 2: + self._notebook.get_tab_label(self._notebook.get_nth_page(0 + )).show_close_button() self._delete_tab_button.props.sensitive = True self._previous_tab_button.props.sensitive = True self._next_tab_button.props.sensitive = True - def __close_tab_cb(self, btn): - self._close_tab(self._notebook.props.page) + def __close_tab_cb(self, btn, child): + index = self._notebook.page_num(child) + self._close_tab(index) if self._notebook.get_n_pages() == 1: + self._notebook.get_tab_label(self._notebook.get_nth_page(0 + )).hide_close_button() self._delete_tab_button.props.sensitive = False self._previous_tab_button.props.sensitive = False self._next_tab_button.props.sensitive = False + self._notebook.update_tab_sizes() + def __prev_tab_cb(self, btn): if self._notebook.props.page == 0: self._notebook.props.page = self._notebook.get_n_pages() - 1 @@ -305,9 +315,8 @@ class TerminalActivity(activity.Activity): vt.connect(window-title-changed, self.__tab_title_changed_cb) # FIXME have to resend motion events to parent, see #1402 - vt.connect('motion-notify-event', self.__motion_notify_cb) + #vt.connect('motion-notify-event', self.__motion_notify_cb) - #FIXME Drag and drop not working SL#3655 #vt.drag_dest_set(Gtk.DestDefaults.MOTION | Gtk.DestDefaults.DROP, # [('text/plain', 0, 0), ('STRING', 0, 1)], # Gdk.DragAction.DEFAULT | @@ -318,25 +327,32 @@ class TerminalActivity(activity.Activity): vt.show() - label = Gtk.Label() - scrollbar = Gtk.VScrollbar.new(vt.get_vadjustment()) - scrollbar.show() box = Gtk.HBox() box.pack_start(vt, True, True, 0) box.pack_start(scrollbar, False, True, 0) box.vt = vt - box.label =
Re: [Sugar-devel] [ASLO] Release Terminal-38
== known issues == * http://bugs.sugarlabs.org/ticket/3645 (Saving data in the journal). * http://bugs.sugarlabs.org/ticket/3655 (Drag and drop not working) Drag and drop will be a new utility, the terminal was connected to a drag and drop callback, but it was not the drag and drop clipboard utility, you can check it in the recently commented sources. Cheers, danielf. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [PATCH Terminal 1/2] GTK3 Port start
The correct way to do the gtk3 branch is creating a new branch called sugar-0.94 and following the Gtk3 port in the master branch. If you make a new branch called gtk3, I'm not sure in which branch do you want to be applied the Gtk3 Port patch. About the tabs patch, I have to make it again with the new corrections to the Gtk3 port, then I'll send it. Cheers. 2012/5/28 Rafael Ortiz raf...@activitycentral.com Daniel, Aguz. I did a gtk3 branch for terminal, I gave access to you both, you can apply the patch directly if you want. I'm also interested in having the tabs patch (for both gtk2 and gtk3 versions). you can sent it an we can work in backporting it. -- Kaufmann Manuel Blog: http://humitos.wordpress.com/ Porfolio: http://fotos.mkaufmann.com.ar/ PyAr: http://www.python.com.ar/ ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [PATCH Terminal 1/2] GTK3 Port start
Sorry by the long delay. I send the new version of the patch with the GTK-3 port: Gtk3 Port Start (Code Sprint) Fixing scrollbar bugs (humitos) One import per line (Correction) If there isn't any other correction, I make the other patch (The same tabs as Browse). Regards. 2012/5/22 Rafael Ortiz raf...@activitycentral.com On Tue, May 22, 2012 at 7:42 AM, Manuel Kaufmann humi...@gmail.comwrote: On Wed, May 16, 2012 at 10:26 PM, Agustin Zubiaga Sanchez a...@sugarlabs.org wrote: Yes, I'm testing your patch (humitos) and works perfectly :) And in my XO 1.5 also works! Could you send the new version of the patch? +1 Its necessary to begin the terminal gtk3 branch. -- Kaufmann Manuel Blog: http://humitos.wordpress.com/ Porfolio: http://fotos.mkaufmann.com.ar/ PyAr: http://www.python.com.ar/ ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel 0001-GTK3-Port.patch Description: Binary data ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [PATCH Terminal 1/2] GTK3 Port start
Hi, -vt.drag_dest_set(gtk.DEST_DEFAULT_MOTION | gtk.DEST_DEFAULT_DROP, - [('text/plain', 0, 0), ('STRING', 0, 1)], - gtk.gdk.ACTION_DEFAULT | - gtk.gdk.ACTION_COPY) -vt.connect('drag_data_received', self.__drag_data_received_cb) +#vt.drag_dest_set(Gtk.DestDefaults.MOTION | Gtk.DestDefaults.DROP, +# [('text/plain', 0, 0), ('STRING', 0, 1)], +# Gdk.DragAction.DEFAULT | +# Gdk.DragAction.COPY) +#vt.connect('drag_data_received', self.__drag_data_received_cb) Why these lines are commented? There were problems with drag and drop, and we didn't find utility connecting the Vte Terminal to drag and drop events. -scrollbar = gtk.VScrollbar(vt.get_adjustment()) +scrollbar = Gtk.VScrollbar(vt.get_vadjustment()) I don't know why (yet) but I'm getting this error on Fedora 16 with jhbuild: http://fpaste.org/iyeO/ I don't have this problem with Debian Testing. -box = gtk.HBox() -box.pack_start(vt) -box.pack_start(scrollbar) +box = Gtk.HBox() +box.pack_start(vt, True, True, 0) +box.pack_start(scrollbar, True, True, 0) Here, you should pass False to the last box.pack_start: box.pack_start(scrollbar, False, True, 0) This is because you don't want to expand the ScrollBar, we want to put it just on the right of the screen. With True when a new tab is opened you will see a portion of the screen that is not used by Vte, instead it is used by the ScrollBar and if you open a new tab and switch between them many times you will get the correct proportion :) Yes, but if we pass True, Sugar doesn't show the Scrollbar in the Window, there was a long discussion yesterday, in the Sugar Code Sprint about that. I think there's missing a FIXME. Regards, Daniel Francis. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel