def set_capstyle(self, cs):
DEBUG_MSG("<STR_LIT>", <NUM_LIT:1>, self)<EOL>self.select()<EOL>GraphicsContextBase.set_capstyle(self, cs)<EOL>self._pen.SetCap(GraphicsContextWx._capd[self._capstyle])<EOL>self.gfx_ctx.SetPen(self._pen)<EOL>self.unselect()<EOL>
Set the capstyle as a string in ('butt', 'round', 'projecting')