Editing PyMaemo/Python-osso examples

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
-
This document shows some examples of the functionalities available in the [http://maemo.org/packages/view/python-osso/ python-osso package]. See also the [[Documentation/Maemo 5 Developer Guide/Application Development/LibOSSO library|documentation for the libosso]] library.
+
== Introduction ==
 +
 
 +
This document shows some examples of the functionalities available in the python-osso package.
== List of examples ==
== List of examples ==
Line 17: Line 19:
These examples show how to use the auto-saving and state saving features from python-osso. Each file is a separate example.
These examples show how to use the auto-saving and state saving features from python-osso. Each file is a separate example.
-
* [https://garage.maemo.org/svn/pymaemo/wwwold/documentation/python_osso_examples/code/autosave/osso_test_autosave.py osso_test_autosave.py] - The same objects from the example below, but instead of calling the save function directly, any changes call <code>user_data_changed</code>, and when exiting <code>force_autosave</code> is called.
+
* [https://garage.maemo.org/svn/pymaemo/wwwold/documentation/python_osso_examples/code/autosave/osso_test_autosave.py 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.
-
* [https://garage.maemo.org/svn/pymaemo/wwwold/documentation/python_osso_examples/code/autosave/osso_test_statesaving.py osso_test_statesaving.py] - Creates a <code>gtk.Entry</code> and a <code>gtk.HScale</code>. 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.
+
* [https://garage.maemo.org/svn/pymaemo/wwwold/documentation/python_osso_examples/code/autosave/osso_test_statesaving.py 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 ===
=== Device State ===
Line 29: Line 31:
=== 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 52: Line 51:
=== 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.
* [https://garage.maemo.org/svn/pymaemo/wwwold/documentation/python_osso_examples/code/rpc/osso_test_sender.py osso_test_sender.py] - GUI app that requests a service from the target app.
* [https://garage.maemo.org/svn/pymaemo/wwwold/documentation/python_osso_examples/code/rpc/osso_test_sender.py osso_test_sender.py] - GUI app that requests a service from the target app.
-
* [https://garage.maemo.org/svn/pymaemo/wwwold/documentation/python_osso_examples/code/rpc/osso_test_receiver.py osso_test_receiver.py] - Sample service that will be called by <code>osso_test_sender.py</code>
+
* [https://garage.maemo.org/svn/pymaemo/wwwold/documentation/python_osso_examples/code/rpc/osso_test_receiver.py osso_test_receiver.py] - Sample service that will be called by osso_test_sender.py
=== Status Bar ===
=== Status Bar ===
Line 66: Line 64:
=== System Note ===
=== System Note ===
-
These examples show how to use notification dialogs with applications that run without GUI.
+
These examples show how to use notification dialogs with applications that run without gui.
* [https://garage.maemo.org/svn/pymaemo/wwwold/documentation/python_osso_examples/code/systemnote/osso_test_note_dialog.py osso_test_note_dialog.py] - Shows a dialog note.
* [https://garage.maemo.org/svn/pymaemo/wwwold/documentation/python_osso_examples/code/systemnote/osso_test_note_dialog.py osso_test_note_dialog.py] - Shows a dialog note.
Line 72: Line 70:
=== 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]
-
[[Category:Python]]
+
== References ==
 +
 
 +
[6] Debian New Maintainers' Guide: [http://www.us.debian.org/doc/maint-guide/]

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)