PyFlow.UI.Utils package¶
Submodules¶
PyFlow.UI.Utils.ConvexHull module¶
-
PyFlow.UI.Utils.ConvexHull.convex_hull(points)¶ Computes the convex hull of a set of 2D points.
Input: an iterable sequence of (x, y) pairs representing the points. Output: a list of vertices of the convex hull in counter-clockwise order,
starting from the vertex with the lexicographically smallest coordinates.Implements Andrew’s monotone chain algorithm. O(n log n) complexity.
PyFlow.UI.Utils.PythonSyntax module¶
-
class
PyFlow.UI.Utils.PythonSyntax.PythonHighlighter(document)¶ Bases:
PySide2.QtGui.QSyntaxHighlighterSyntax highlighter for the Python language.
-
__init__(document)¶ Initialize self. See help(type(self)) for accurate signature.
-
highlightBlock(text)¶ Apply syntax highlighting to the given block of text.
-
match_multiline(text, delimiter, in_state, style)¶ Do highlighting of multi-line strings.
delimitershould be aQRegExpfor triple-single-quotes or triple-double-quotes, andin_stateshould be a unique integer to represent the corresponding state changes when inside those strings. Returns True if we’re still inside a multi-line string when this function is finished.
-
-
PyFlow.UI.Utils.PythonSyntax.format(color, style='')¶ Return a QTextCharFormat with the given attributes.
PyFlow.UI.Utils.stylesheet module¶
-
class
PyFlow.UI.Utils.stylesheet.ConnectionTypes¶ Bases:
enum.IntEnumAn enumeration.