The setBorderWidth method sets the widget's border width to the specified one.
widget.setBorderWidth(iWidth);