nukescripts.pythonhighlighter.PythonHighlighter

class nukescripts.pythonhighlighter.PythonHighlighter(self, parent: PySide6.QtCore.QObject)[source]
class nukescripts.pythonhighlighter.PythonHighlighter(self, parent: PySide6.QtGui.QTextDocument)

Bases: QSyntaxHighlighter

Initialize self. See help(type(self)) for accurate signature.

Methods

blockSignals

blockSignals(self, b: bool) -> bool

childEvent

childEvent(self, event: PySide6.QtCore.QChildEvent) -> None

children

children(self) -> List[PySide6.QtCore.QObject]

connect

connect(arg__1: PySide6.QtCore.QObject, arg__2: bytes, arg__3: Callable, type: PySide6.QtCore.Qt.ConnectionType = Instance(Qt.AutoConnection)) -> PySide6.QtCore.QMetaObject.Connection connect(self, arg__1: bytes, arg__2: Callable, type: PySide6.QtCore.Qt.ConnectionType = Instance(Qt.AutoConnection)) -> PySide6.QtCore.QMetaObject.Connection connect(self, arg__1: bytes, arg__2: PySide6.QtCore.QObject, arg__3: bytes, type: PySide6.QtCore.Qt.ConnectionType = Instance(Qt.AutoConnection)) -> PySide6.QtCore.QMetaObject.Connection connect(self, sender: PySide6.QtCore.QObject, signal: bytes, member: bytes, type: PySide6.QtCore.Qt.ConnectionType = Instance(Qt.AutoConnection)) -> PySide6.QtCore.QMetaObject.Connection connect(sender: PySide6.QtCore.QObject, signal: PySide6.QtCore.QMetaMethod, receiver: PySide6.QtCore.QObject, method: PySide6.QtCore.QMetaMethod, type: PySide6.QtCore.Qt.ConnectionType = Instance(Qt.AutoConnection)) -> PySide6.QtCore.QMetaObject.Connection connect(sender: PySide6.QtCore.QObject, signal: bytes, receiver: PySide6.QtCore.QObject, member: bytes, type: PySide6.QtCore.Qt.ConnectionType = Instance(Qt.AutoConnection)) -> PySide6.QtCore.QMetaObject.Connection

connectNotify

connectNotify(self, signal: PySide6.QtCore.QMetaMethod) -> None

currentBlock

currentBlock(self) -> PySide6.QtGui.QTextBlock

currentBlockState

currentBlockState(self) -> int

currentBlockUserData

currentBlockUserData(self) -> PySide6.QtGui.QTextBlockUserData

customEvent

customEvent(self, event: PySide6.QtCore.QEvent) -> None

deleteLater

deleteLater(self) -> None

disconnect

disconnect(arg__1: PySide6.QtCore.QMetaObject.Connection) -> bool disconnect(arg__1: PySide6.QtCore.QObject, arg__2: bytes, arg__3: Callable) -> bool disconnect(self, arg__1: bytes, arg__2: Callable) -> bool disconnect(self, receiver: PySide6.QtCore.QObject, member: Optional[bytes] = None) -> bool disconnect(self, signal: bytes, receiver: PySide6.QtCore.QObject, member: bytes) -> bool disconnect(sender: PySide6.QtCore.QObject, signal: PySide6.QtCore.QMetaMethod, receiver: PySide6.QtCore.QObject, member: PySide6.QtCore.QMetaMethod) -> bool disconnect(sender: PySide6.QtCore.QObject, signal: bytes, receiver: PySide6.QtCore.QObject, member: bytes) -> bool

disconnectNotify

disconnectNotify(self, signal: PySide6.QtCore.QMetaMethod) -> None

document

document(self) -> PySide6.QtGui.QTextDocument

dumpObjectInfo

dumpObjectInfo(self) -> None

dumpObjectTree

dumpObjectTree(self) -> None

dynamicPropertyNames

dynamicPropertyNames(self) -> List[PySide6.QtCore.QByteArray]

emit

emit(self, arg__1: bytes, *args: None) -> bool

event

event(self, event: PySide6.QtCore.QEvent) -> bool

eventFilter

eventFilter(self, watched: PySide6.QtCore.QObject, event: PySide6.QtCore.QEvent) -> bool

findChild

findChild(self, type: type, name: str = {}, options: PySide6.QtCore.Qt.FindChildOption = Instance(Qt.FindChildrenRecursively)) -> object

findChildren

findChildren(self, type: type, name: str = {}, options: PySide6.QtCore.Qt.FindChildOption = Instance(Qt.FindChildrenRecursively)) -> Iterable findChildren(self, type: type, pattern: Union[PySide6.QtCore.QRegularExpression, str], options: PySide6.QtCore.Qt.FindChildOption = Instance(Qt.FindChildrenRecursively)) -> Iterable

format

format(self, pos: int) -> PySide6.QtGui.QTextCharFormat

highlightBlock

highlightBlock(self, text: str) -> None

inherits

inherits(self, classname: bytes) -> bool

installEventFilter

installEventFilter(self, filterObj: PySide6.QtCore.QObject) -> None

isQuickItemType

isQuickItemType(self) -> bool

isSignalConnected

isSignalConnected(self, signal: PySide6.QtCore.QMetaMethod) -> bool

isWidgetType

isWidgetType(self) -> bool

isWindowType

isWindowType(self) -> bool

killTimer

killTimer(self, id: int) -> None

metaObject

metaObject(self) -> PySide6.QtCore.QMetaObject

moveToThread

moveToThread(self, thread: PySide6.QtCore.QThread) -> None

objectName

objectName(self) -> str

parent

parent(self) -> PySide6.QtCore.QObject

previousBlockState

previousBlockState(self) -> int

property

property(self, name: str) -> Any

receivers

receivers(self, signal: bytes) -> int

rehighlight

rehighlight(self) -> None

rehighlightBlock

rehighlightBlock(self, block: PySide6.QtGui.QTextBlock) -> None

removeEventFilter

removeEventFilter(self, obj: PySide6.QtCore.QObject) -> None

sender

sender(self) -> PySide6.QtCore.QObject

senderSignalIndex

senderSignalIndex(self) -> int

setCurrentBlockState

setCurrentBlockState(self, newState: int) -> None

setCurrentBlockUserData

setCurrentBlockUserData(self, data: PySide6.QtGui.QTextBlockUserData) -> None

setDocument

setDocument(self, doc: Optional[PySide6.QtGui.QTextDocument]) -> None

setFormat

setFormat(self, start: int, count: int, color: Union[PySide6.QtGui.QColor, PySide6.QtGui.QRgba64, Any, PySide6.QtCore.Qt.GlobalColor, str, int]) -> None setFormat(self, start: int, count: int, font: Union[PySide6.QtGui.QFont, str, Sequence[str]]) -> None setFormat(self, start: int, count: int, format: PySide6.QtGui.QTextCharFormat) -> None

setObjectName

setObjectName(self, name: str) -> None

setParent

setParent(self, parent: Optional[PySide6.QtCore.QObject]) -> None

setProperty

setProperty(self, name: str, value: Any) -> bool

signalsBlocked

signalsBlocked(self) -> bool

startTimer

startTimer(self, interval: int, timerType: PySide6.QtCore.Qt.TimerType = Instance(Qt.CoarseTimer)) -> int

thread

thread(self) -> PySide6.QtCore.QThread

timerEvent

timerEvent(self, event: PySide6.QtCore.QTimerEvent) -> None

tr

tr(self, sourceText: str, disambiguation: Optional[str], n: int = -1) -> str

Attributes

destroyed

objectNameChanged

staticMetaObject

blockSignals(self, b: bool) bool
childEvent(self, event: PySide6.QtCore.QChildEvent) None
children(self) List[PySide6.QtCore.QObject]
static connect(arg__1: PySide6.QtCore.QObject, arg__2: bytes, arg__3: Callable, type: PySide6.QtCore.Qt.ConnectionType = Instance(Qt.AutoConnection)) PySide6.QtCore.QMetaObject.Connection
static connect(self, arg__1: bytes, arg__2: Callable, type: PySide6.QtCore.Qt.ConnectionType = Instance(Qt.AutoConnection)) PySide6.QtCore.QMetaObject.Connection
static connect(self, arg__1: bytes, arg__2: PySide6.QtCore.QObject, arg__3: bytes, type: PySide6.QtCore.Qt.ConnectionType = Instance(Qt.AutoConnection)) PySide6.QtCore.QMetaObject.Connection
static connect(self, sender: PySide6.QtCore.QObject, signal: bytes, member: bytes, type: PySide6.QtCore.Qt.ConnectionType = Instance(Qt.AutoConnection)) PySide6.QtCore.QMetaObject.Connection
static connect(sender: PySide6.QtCore.QObject, signal: PySide6.QtCore.QMetaMethod, receiver: PySide6.QtCore.QObject, method: PySide6.QtCore.QMetaMethod, type: PySide6.QtCore.Qt.ConnectionType = Instance(Qt.AutoConnection)) PySide6.QtCore.QMetaObject.Connection
static connect(sender: PySide6.QtCore.QObject, signal: bytes, receiver: PySide6.QtCore.QObject, member: bytes, type: PySide6.QtCore.Qt.ConnectionType = Instance(Qt.AutoConnection)) PySide6.QtCore.QMetaObject.Connection
connectNotify(self, signal: PySide6.QtCore.QMetaMethod) None
currentBlock(self) PySide6.QtGui.QTextBlock
currentBlockState(self) int
currentBlockUserData(self) PySide6.QtGui.QTextBlockUserData
customEvent(self, event: PySide6.QtCore.QEvent) None
deleteLater(self) None
static disconnect(arg__1: PySide6.QtCore.QMetaObject.Connection) bool
static disconnect(arg__1: PySide6.QtCore.QObject, arg__2: bytes, arg__3: Callable) bool
static disconnect(self, arg__1: bytes, arg__2: Callable) bool
static disconnect(self, receiver: PySide6.QtCore.QObject, member: bytes | None = None) bool
static disconnect(self, signal: bytes, receiver: PySide6.QtCore.QObject, member: bytes) bool
static disconnect(sender: PySide6.QtCore.QObject, signal: PySide6.QtCore.QMetaMethod, receiver: PySide6.QtCore.QObject, member: PySide6.QtCore.QMetaMethod) bool
static disconnect(sender: PySide6.QtCore.QObject, signal: bytes, receiver: PySide6.QtCore.QObject, member: bytes) bool
disconnectNotify(self, signal: PySide6.QtCore.QMetaMethod) None
document(self) PySide6.QtGui.QTextDocument
dumpObjectInfo(self) None
dumpObjectTree(self) None
dynamicPropertyNames(self) List[PySide6.QtCore.QByteArray]
emit(self, arg__1: bytes, *args: None) bool
event(self, event: PySide6.QtCore.QEvent) bool
eventFilter(self, watched: PySide6.QtCore.QObject, event: PySide6.QtCore.QEvent) bool
findChild(self, type: type, name: str = {}, options: PySide6.QtCore.Qt.FindChildOption = Instance(Qt.FindChildrenRecursively)) object
findChildren(self, type: type, name: str = {}, options: PySide6.QtCore.Qt.FindChildOption = Instance(Qt.FindChildrenRecursively)) Iterable
findChildren(self, type: type, pattern: PySide6.QtCore.QRegularExpression | str, options: PySide6.QtCore.Qt.FindChildOption = Instance(Qt.FindChildrenRecursively)) Iterable
format(self, pos: int) PySide6.QtGui.QTextCharFormat
highlightBlock(self, text: str) None[source]
inherits(self, classname: bytes) bool
installEventFilter(self, filterObj: PySide6.QtCore.QObject) None
isQuickItemType(self) bool
isSignalConnected(self, signal: PySide6.QtCore.QMetaMethod) bool
isWidgetType(self) bool
isWindowType(self) bool
killTimer(self, id: int) None
metaObject(self) PySide6.QtCore.QMetaObject
moveToThread(self, thread: PySide6.QtCore.QThread) None
objectName(self) str
parent(self) PySide6.QtCore.QObject
previousBlockState(self) int
property(self, name: str) Any
receivers(self, signal: bytes) int
rehighlight(self) None
rehighlightBlock(self, block: PySide6.QtGui.QTextBlock) None
removeEventFilter(self, obj: PySide6.QtCore.QObject) None
sender(self) PySide6.QtCore.QObject
senderSignalIndex(self) int
setCurrentBlockState(self, newState: int) None
setCurrentBlockUserData(self, data: PySide6.QtGui.QTextBlockUserData) None
setDocument(self, doc: PySide6.QtGui.QTextDocument | None) None
setFormat(self, start: int, count: int, color: PySide6.QtGui.QColor | PySide6.QtGui.QRgba64 | Any | PySide6.QtCore.Qt.GlobalColor | str | int) None
setFormat(self, start: int, count: int, font: PySide6.QtGui.QFont | str | Sequence[str]) None
setFormat(self, start: int, count: int, format: PySide6.QtGui.QTextCharFormat) None
setObjectName(self, name: str) None
setParent(self, parent: PySide6.QtCore.QObject | None) None
setProperty(self, name: str, value: Any) bool
signalsBlocked(self) bool
startTimer(self, interval: int, timerType: PySide6.QtCore.Qt.TimerType = Instance(Qt.CoarseTimer)) int
thread(self) PySide6.QtCore.QThread
timerEvent(self, event: PySide6.QtCore.QTimerEvent) None
classmethod tr(self, sourceText: str, disambiguation: str | None, n: int = -1) str