summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seguin <guillaume@segu.in>2008-05-16 14:22:00 +0200
committerGuillaume Seguin <guillaume@segu.in>2008-05-16 14:22:00 +0200
commit2c67eafa220848ebbdb5b78bcb4cb35cd08608f8 (patch)
treef6028194fd46015758e2cac9cf91e03f709ad98e
parentde28549eb38557a7a83c89a09eb7484c5e136bce (diff)
downloadkuwii-2c67eafa220848ebbdb5b78bcb4cb35cd08608f8.tar.gz
kuwii-2c67eafa220848ebbdb5b78bcb4cb35cd08608f8.tar.bz2
Add quit action
-rw-r--r--kuwii/actions.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/kuwii/actions.py b/kuwii/actions.py
index 939deba..6bf4298 100644
--- a/kuwii/actions.py
+++ b/kuwii/actions.py
@@ -36,6 +36,9 @@ def key(kuwii, *keylist):
kuwii.bridge.press (keylist)
kuwii.bridge.release (keylist)
+def quit(kuwii, *args):
+ kuwii.wiimote.disconnect()
+
try:
import dbus as dbus_module
session_bus = dbus_module.SessionBus()