'Set the line style to be one of'

@cbook.deprecated(u'2.1')
def set_linestyle(self, ls):

    DEBUG_MSG(u'set_linestyle()', 1, self)
    self.select()
    GraphicsContextBase.set_linestyle(self, ls)
    try:
        self._style = wxc.dashd_wx[ls]
    except KeyError:
        self._style = wx.LONG_DASH
    if (wx.Platform == u'__WXMSW__'):
        self.set_linewidth(1)
    self._pen.SetStyle(self._style)
    self.gfx_ctx.SetPen(self._pen)
    self.unselect()
