def set_linewidth(self, w):
DEBUG_MSG("<STR_LIT>", <NUM_LIT:1>, self)<EOL>self.select()<EOL>if w><NUM_LIT:0> and w<<NUM_LIT:1>: w = <NUM_LIT:1><EOL>GraphicsContextBase.set_linewidth(self, w)<EOL>lw = int(self.renderer.points_to_pixels(self._linewidth))<EOL>if lw==<NUM_LIT:0>: lw = <NUM_LIT:1><EOL>self._pen.SetWidth(lw)<EOL>self.gfx_ctx.SetPen(self._pen)<EOL>self.unselect()<EOL>
Set the line width.