1>>> NetworkManager.NetworkManager.Version
2'1.4.4'
3>>> NetworkManager.NetworkManager.GetPermissions()
4{'org.freedesktop.NetworkManager.checkpoint-rollback': 'auth',
5 'org.freedesktop.NetworkManager.enable-disable-network': 'yes',
6 ...}
7# Must have a mainloop to use signals
8>>> import dbus.mainloop.glib
9>>> dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
10>>> NetworkManager.Networkmanager.OnStateChanged(handle_state_change)
11