From: Dana Jansens Date: Sat, 4 Jan 2003 02:34:58 +0000 (+0000) Subject: separate off execute, since its not a callback function X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=5f34069a3c6e9c0ecdf38c9f885438aaa2d8d12c;p=chaz%2Fopenbox separate off execute, since its not a callback function --- diff --git a/scripts/builtins.py b/scripts/builtins.py index 46e7d28e..eaeaca22 100644 --- a/scripts/builtins.py +++ b/scripts/builtins.py @@ -65,9 +65,6 @@ def resize(data): data.press_clientwidth() + dx, data.press_clientheight() + dy); -def execute(bin, screen = 0): - Openbox_execute(openbox, screen, bin) - def restart(data): Openbox_restart(openbox, "") @@ -101,5 +98,12 @@ def unshade(data): client = Openbox_findClient(openbox, data.window()) if not client: return OBClient_shade(client, 0) + +######################################### +### Convenience functions for scripts ### +######################################### + +def execute(bin, screen = 0): + Openbox_execute(openbox, screen, bin) print "Loaded builtins.py"