added adjust_margin() utility
This commit is contained in:
6
kabuki/utils.py
Normal file
6
kabuki/utils.py
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
|
||||||
|
def adjust_margin(obj, top=0, right=0, bottom=0, left=0):
|
||||||
|
delta = (top, right, bottom, left)
|
||||||
|
obj.margin = [m + d for m, d in zip(obj.margin, delta)]
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user