from scribus import *
SetUnit(1)
x,y = GetPosition()
l,h = GetSize()
t1 = CreateLine(x, y-2, x, y-7)
SetLineWidth(0.1, t1)
t2 = CreateLine(x+l, y-2, x+l, y-7)
SetLineWidth(0.1, t2)
t3 = CreateLine(x, y+7+h, x, y+2+h)
SetLineWidth(0.1, t3)
t4 = CreateLine(x+l, y+7+h, x+l, y+2+h)
SetLineWidth(0.1, t4)
t5 = CreateLine(x-2, y, x-7, y)
SetLineWidth(0.1, t5)
t6 = CreateLine(x-2, y+h, x-7, y+h)
SetLineWidth(0.1, t6)
t7 = CreateLine(x+l+2, y+h, x+l+7, y+h)
SetLineWidth(0.1, t7)
t7 = CreateLine(x+l+2, y, x+l+7, y)
SetLineWidth(0.1, t7)
DeselectAll()
