nukescripts.PythonHighlighter

class nukescripts.PythonHighlighter(doc, parent=None)[source]

Bases: PySide2.QtGui.QSyntaxHighlighter

Methods

blockSignals

childEvent

children

connect

connectNotify

currentBlock

currentBlockState

currentBlockUserData

customEvent

deleteLater

disconnect

disconnectNotify

document

dumpObjectInfo

dumpObjectTree

dynamicPropertyNames

emit

event

eventFilter

findChild

findChildren

format

highlightBlock

inherits

installEventFilter

isSignalConnected

isWidgetType

isWindowType

killTimer

metaObject

moveToThread

objectName

parent

previousBlockState

property

receivers

registerUserData

rehighlight

rehighlightBlock

removeEventFilter

sender

senderSignalIndex

setCurrentBlockState

setCurrentBlockUserData

setDocument

setFormat

setObjectName

setParent

setProperty

signalsBlocked

startTimer

thread

timerEvent

tr

Attributes

destroyed

objectNameChanged

staticMetaObject

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