summaryrefslogtreecommitdiffstats
path: root/pylock.py
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-02-02 14:55:11 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-02-02 14:55:11 +0100
commitfdce6479b90dbeef5ca1857b58e6a37ec21978fd (patch)
tree27c86550345ffecebae49cdbb07b6699b9113d13 /pylock.py
parent9981f9f6a2205ed56f16989b590d939d5dac974a (diff)
downloadpylock-fdce6479b90dbeef5ca1857b58e6a37ec21978fd.tar
pylock-fdce6479b90dbeef5ca1857b58e6a37ec21978fd.zip
Added logout function
Diffstat (limited to 'pylock.py')
-rw-r--r--pylock.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pylock.py b/pylock.py
index 33c389f..cad52fc 100644
--- a/pylock.py
+++ b/pylock.py
@@ -46,7 +46,7 @@ def lock(timeLeft):
window.lock()
def logout():
- pass
+ exit()
def updateTimeout(timeLeft):
window.updateLockMessage(username, timeLeft)
@@ -64,6 +64,7 @@ def tryUnlock(w, password):
return True
+window.connect('logout', lambda w: locker.logout())
window.connect('tryUnlock', tryUnlock)
Gtk.main()