Python set line width
8 Python code examples are found related to "
set line width".
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.
Example 1
Source File: FCObjects.py From wafer_map with GNU General Public License v3.0 | 5 votes |
def SetLineWidth(self, LineWidth): """ Set the LineWidth :param integer `LineWidth`: sets the line width in pixel """ pass
Example 2
Source File: graphicstyle.py From gprime with GNU General Public License v2.0 | 5 votes |
def set_line_width(self, val): """ sets the line width """ self.lwidth = val
Example 3
Source File: layer_types.py From innstereo with GNU General Public License v2.0 | 5 votes |
def set_line_width(self, new_line_width): """ Assigns a new line width to this layer. Expects a int or float. This method is called by the layer-properties dialog when a new value has been set. """ self.props["line_width"] = new_line_width
Example 4
Source File: layer_types.py From innstereo with GNU General Public License v2.0 | 5 votes |
def set_contour_line_width(self, new_width): """ Sets a new contour-line line-width for the current layer. Expects an int or float. """ self.props["contour_line_width"] = new_width
Example 5
Source File: graphics_context.py From planisphere with GNU General Public License v2.0 | 5 votes |
def set_line_width(self, line_width): """ Sets the line width used to stroke paths. :param line_width: Line width, relative to the base line width defined in <constants.py> :return: None """ self.context.set_line_width(width=line_width * self.base_line_width)
Example 6
Source File: canvas.py From kicad-footprint-generator with GNU General Public License v3.0 | 5 votes |
def setLineWidth(self, width): self.line_width = width if self.auto_offset: self.offset = self.line_width / 2.0 return self
Example 7
Source File: fpdf.py From termite-visualizations with BSD 3-Clause "New" or "Revised" License | 5 votes |
def set_line_width(self, width): "Set line width" self.line_width=width if(self.page>0): self._out(sprintf('%.2f w',width*self.k))
Example 8
Source File: ml_arcTracer.py From ml_tools with MIT License | 5 votes |
def setLineWidthCallback(slider, *args): value = mc.floatSliderGrp(slider, query=True, value=True) for each in mc.ls('ml_arcTracer_brush_*', type='brush'): mc.setAttr(each+'.globalScale', value) mc.optionVar(floatValue=('ml_arcTracer_brushGlobalScale', value))