[maemo-developers] Writing desktop widgets in Python on Maemo 5: API changes

From: Anderson Lizardo anderson.lizardo at openbossa.org
Date: Mon Oct 19 18:54:04 EEST 2009
[cross-posting to maemo-developers and pymaemo-developers]


This is just to inform you that a few days ago I uploaded a new
python-hildondesktop version (0.1.0-1maemo1) that changed the API for
Desktop Widgets written in Python (Home and Status widgets). The new
version was uploaded to fremantle extras-devel, and should arrive on
extras-testing/extras once some dependent package is promoted.

The API changes were necessary because the previous one didn't account
for the "plugin_id" property which must be set by the widget loader.
The registering of the widget types (i.e. the
HomePluginItem/StatusMenuItem subclass implemented by desktop widgets)
must also be done by the loader, to avoid clashes when removing then
adding the same widget again. It was also essential to fix
https://bugs.maemo.org/show_bug.cgi?id=5232 and become really usable
on the device.

For a quick "migration guide" from Diablo and earlier (alpha)
Fremantle API, see: http://wiki.maemo.org/PyMaemo/HildonDesktop . It
also contains some usage examples.

Hopefully this will be the last backwards-incompatible API change for
PyMaemo components until the final release.

Anderson Lizardo
OpenBossa Labs - INdT
Manaus - Brazil
More information about the maemo-developers mailing list