X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=scripts%2Fcallbacks.py;h=8c220e6451db1efd4430fdc940f1986ab9ffce3f;hb=69d12b5ee2e8da238ac2fca5606cc25ddaa07523;hp=e001cc3b62c2bdb5b9e21d8a7f16eec905ec5fcb;hpb=1814947e47dcf0ea5734c076d5eabe2f5a2e7f11;p=chaz%2Fopenbox diff --git a/scripts/callbacks.py b/scripts/callbacks.py index e001cc3b..8c220e64 100644 --- a/scripts/callbacks.py +++ b/scripts/callbacks.py @@ -6,16 +6,14 @@ import ob import otk StateRemove = 0 +"""For the state_* callbacks. Indicates the state should be removed from the + window.""" StateAdd = 1 +"""For the state_* callbacks. Indicates the state should be add to the + window.""" StateToggle = 2 - -def restart(data=0, other = ""): - """Restarts Openbox, optionally starting another window manager.""" - ob.openbox.restart(other) - -def exit(data=0): - """Exits Openbox.""" - ob.openbox.shutdown() +"""For the state_* callbacks. Indicates the state should be toggled on the + window.""" def state_above(data, add=StateAdd): """Toggles, adds or removes the 'above' state on a window. @@ -264,4 +262,12 @@ def send_to_prev_desktop(data, no_wrap=0, follow=1): if follow: change_desktop(data, d) +def restart(data=0, other = ""): + """Restarts Openbox, optionally starting another window manager.""" + ob.openbox.restart(other) + +def exit(data=0): + """Exits Openbox.""" + ob.openbox.shutdown() + print "Loaded callbacks.py"