Python wx.JOIN_MITER Examples
The following are 3
code examples of wx.JOIN_MITER().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
wx
, or try the search function
.
Example #1
Source File: GraphicCommons.py From OpenPLC_Editor with GNU General Public License v3.0 | 5 votes |
def MiterPen(colour, width=1, style=wx.SOLID): pen = wx.Pen(colour, width, style) pen.SetJoin(wx.JOIN_MITER) pen.SetCap(wx.CAP_PROJECTING) return pen # ------------------------------------------------------------------------------- # Helpers for highlighting text # -------------------------------------------------------------------------------
Example #2
Source File: OLVPrinter.py From bookhub with MIT License | 5 votes |
def SetGridPen(self, pen): """ Set the pen used to draw a grid in this format """ self.gridPen = pen if self.gridPen: # Other styles don't produce nice joins self.gridPen.SetCap(wx.CAP_BUTT) self.gridPen.SetJoin(wx.JOIN_MITER)
Example #3
Source File: ListCtrlPrinter.py From bookhub with MIT License | 5 votes |
def SetGridPen(self, pen): """ Set the pen used to draw a grid in this format """ self.gridPen = pen if self.gridPen: # Other styles don't produce nice joins self.gridPen.SetCap(wx.CAP_BUTT) self.gridPen.SetJoin(wx.JOIN_MITER)