NetworkManager/examples/python
Robert Love 98192881d3 2006-05-24 Robert Love <rml@novell.com>
* examples/python/systray/eggtrayicon.c, gnome/applet/eggtrayicon.c,
	  gnome/applet/passphrase-dialog.c, gnome/applet/vpn-password-dialog.c,
	  src/NetworkManager.c: Include <glib/gi18n.h> and not <libintl.h>.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1760 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-24 15:53:07 +00:00
..
systray 2006-05-24 Robert Love <rml@novell.com> 2006-05-24 15:53:07 +00:00
.cvsignore adding .cvsignore to examples/python directory 2004-08-30 04:52:12 +00:00
NetworkManager.py 2004-09-22 <clarkbw@cvs.gnome.org> 2004-09-22 17:34:15 +00:00
NMTester.py 2004-08-30 Bryan Clark <clarkbw@cvs.gnome.org> 2004-08-30 04:20:09 +00:00
README 004-08-27 Bryan Clark <bclark@redhat.com> 2004-08-27 20:48:04 +00:00

Python Examples

You'll need equivalent versions of these packages in order to run most of these examples.

hal-0.2.97.cvs20040823
dbus-0.22-4
pygtk2-2.3.96-2
python-2.3.4-8
gnome-python2-2.0.2-1


NMTester.py
===============================================================================

This is a simple command line program that sub classes the NetworkManager class.  The tester prints out the network devices objects that are returned from the NetworkManager class.  The code hangs in the gtk.main() loop once run and will listen for any events from the NetworkManager


NetworkManager.py
===============================================================================
This object hooks into the NetworkManger and HAL service through D-BUS.  The get_device_list code will return a python list [] of dictionary objects representing the devices that the NetworkManger services is aware of.