PyMaemo/Python-osso examples

(tidy)
Line 1: Line 1:
-
== Introduction ==
 
-
 
This document shows some examples of the functionalities available in the python-osso package.
This document shows some examples of the functionalities available in the python-osso package.
Line 31: Line 29:
=== Help ===
=== Help ===
 +
These examples show how to use HELP and enable the "?" button in dialogs
These examples show how to use HELP and enable the "?" button in dialogs
* [https://garage.maemo.org/svn/pymaemo/wwwold/documentation/python_osso_examples/code/helplib/osso_test_help.py osso_test_help.py] - Shows two buttons: one to load a help topic and another to open a dialog with an "?" button in titlebar.
* [https://garage.maemo.org/svn/pymaemo/wwwold/documentation/python_osso_examples/code/helplib/osso_test_help.py osso_test_help.py] - Shows two buttons: one to load a help topic and another to open a dialog with an "?" button in titlebar.
-
=== Mime ===
+
=== MIME ===
 +
 
These examples show how use the MIME functions.
These examples show how use the MIME functions.
Line 44: Line 44:
=== Plugin ===
=== Plugin ===
 +
This example shows how to load plugins.
This example shows how to load plugins.
Line 51: Line 52:
=== RPC ===
=== RPC ===
 +
These examples show how to make remote procedure calls using python-osso.
These examples show how to make remote procedure calls using python-osso.
Line 70: Line 72:
=== Time Notification ===
=== Time Notification ===
 +
This example registers a callback and tries to set the system time. Notice: Currently this won't change the time. (Even in C).
This example registers a callback and tries to set the system time. Notice: Currently this won't change the time. (Even in C).
* [https://garage.maemo.org/svn/pymaemo/wwwold/documentation/python_osso_examples/code/timenotification/osso_test_timenotification.py osso_test_note_timenotification.py]
* [https://garage.maemo.org/svn/pymaemo/wwwold/documentation/python_osso_examples/code/timenotification/osso_test_timenotification.py osso_test_note_timenotification.py]
-
 
-
== References ==
 
-
 
-
[6] Debian New Maintainers' Guide: [http://www.us.debian.org/doc/maint-guide/]
 
[[Category:Python]]
[[Category:Python]]

Revision as of 11:12, 23 June 2010

This document shows some examples of the functionalities available in the python-osso package.

Contents

List of examples

Download all examples

Application

This example shows how to bring an application to foreground using osso.Application.application_top().

Auto-saving / State Saving

These examples show how to use the auto-saving and state saving features from python-osso. Each file is a separate example.

  • osso_test_autosave.py - The same objects from the example below, but instead of calling the save function directly, any changes call user_data_changed, and when exiting force_autosave is called.
  • osso_test_statesaving.py - Creates a gtk.Entry and a gtk.HScale. It saves the state when the application goes to background or exits, restoring the state on the next startup, unless the device resets or is turned off.

Device State

These examples show how to interact with the display and the device.

Help

These examples show how to use HELP and enable the "?" button in dialogs

  • osso_test_help.py - Shows two buttons: one to load a help topic and another to open a dialog with an "?" button in titlebar.

MIME

These examples show how use the MIME functions.

Plugin

This example shows how to load plugins.

RPC

These examples show how to make remote procedure calls using python-osso.

Status Bar

This example shows how to send events to status bar applets.

System Note

These examples show how to use notification dialogs with applications that run without gui.

Time Notification

This example registers a callback and tries to set the system time. Notice: Currently this won't change the time. (Even in C).