separate off execute, since its not a callback function
This commit is contained in:
parent
a84666e955
commit
5f34069a3c
1 changed files with 7 additions and 3 deletions
|
@ -65,9 +65,6 @@ def resize(data):
|
||||||
data.press_clientwidth() + dx,
|
data.press_clientwidth() + dx,
|
||||||
data.press_clientheight() + dy);
|
data.press_clientheight() + dy);
|
||||||
|
|
||||||
def execute(bin, screen = 0):
|
|
||||||
Openbox_execute(openbox, screen, bin)
|
|
||||||
|
|
||||||
def restart(data):
|
def restart(data):
|
||||||
Openbox_restart(openbox, "")
|
Openbox_restart(openbox, "")
|
||||||
|
|
||||||
|
@ -101,5 +98,12 @@ def unshade(data):
|
||||||
client = Openbox_findClient(openbox, data.window())
|
client = Openbox_findClient(openbox, data.window())
|
||||||
if not client: return
|
if not client: return
|
||||||
OBClient_shade(client, 0)
|
OBClient_shade(client, 0)
|
||||||
|
|
||||||
|
#########################################
|
||||||
|
### Convenience functions for scripts ###
|
||||||
|
#########################################
|
||||||
|
|
||||||
|
def execute(bin, screen = 0):
|
||||||
|
Openbox_execute(openbox, screen, bin)
|
||||||
|
|
||||||
print "Loaded builtins.py"
|
print "Loaded builtins.py"
|
||||||
|
|
Loading…
Reference in a new issue