nukescripts.widgetgroup.QStyle
- class nukescripts.widgetgroup.QStyle(self)
Bases:
QObject__init__(self) -> None
Initialize self. See help(type(self)) for accurate signature.
Methods
alignedRect(direction: PySide6.QtCore.Qt.LayoutDirection, alignment: PySide6.QtCore.Qt.AlignmentFlag, size: PySide6.QtCore.QSize, rectangle: PySide6.QtCore.QRect) -> PySide6.QtCore.QRect
blockSignals(self, b: bool) -> bool
childEvent(self, event: PySide6.QtCore.QChildEvent) -> None
children(self) -> List[PySide6.QtCore.QObject]
combinedLayoutSpacing(self, controls1: PySide6.QtWidgets.QSizePolicy.ControlType, controls2: PySide6.QtWidgets.QSizePolicy.ControlType, orientation: PySide6.QtCore.Qt.Orientation, option: Optional[PySide6.QtWidgets.QStyleOption] = None, widget: Optional[PySide6.QtWidgets.QWidget] = None) -> int
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(self, signal: PySide6.QtCore.QMetaMethod) -> None
customEvent(self, event: PySide6.QtCore.QEvent) -> None
deleteLater(self) -> None
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(self, signal: PySide6.QtCore.QMetaMethod) -> None
drawComplexControl(self, cc: PySide6.QtWidgets.QStyle.ComplexControl, opt: PySide6.QtWidgets.QStyleOptionComplex, p: PySide6.QtGui.QPainter, widget: Optional[PySide6.QtWidgets.QWidget] = None) -> None
drawControl(self, element: PySide6.QtWidgets.QStyle.ControlElement, opt: PySide6.QtWidgets.QStyleOption, p: PySide6.QtGui.QPainter, widget: Optional[PySide6.QtWidgets.QWidget] = None) -> None
drawItemPixmap(self, painter: PySide6.QtGui.QPainter, rect: PySide6.QtCore.QRect, alignment: int, pixmap: Union[PySide6.QtGui.QPixmap, PySide6.QtGui.QImage, str]) -> None
drawItemText(self, painter: PySide6.QtGui.QPainter, rect: PySide6.QtCore.QRect, flags: int, pal: Union[PySide6.QtGui.QPalette, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor], enabled: bool, text: str, textRole: PySide6.QtGui.QPalette.ColorRole = Instance(PySide6.QtGui.QPalette.NoRole)) -> None
drawPrimitive(self, pe: PySide6.QtWidgets.QStyle.PrimitiveElement, opt: PySide6.QtWidgets.QStyleOption, p: PySide6.QtGui.QPainter, widget: Optional[PySide6.QtWidgets.QWidget] = None) -> None
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: Union[PySide6.QtCore.QRegularExpression, str], options: PySide6.QtCore.Qt.FindChildOption = Instance(Qt.FindChildrenRecursively)) -> Iterable
generatedIconPixmap(self, iconMode: PySide6.QtGui.QIcon.Mode, pixmap: Union[PySide6.QtGui.QPixmap, PySide6.QtGui.QImage, str], opt: PySide6.QtWidgets.QStyleOption) -> PySide6.QtGui.QPixmap
hitTestComplexControl(self, cc: PySide6.QtWidgets.QStyle.ComplexControl, opt: PySide6.QtWidgets.QStyleOptionComplex, pt: PySide6.QtCore.QPoint, widget: Optional[PySide6.QtWidgets.QWidget] = None) -> PySide6.QtWidgets.QStyle.SubControl
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
itemPixmapRect(self, r: PySide6.QtCore.QRect, flags: int, pixmap: Union[PySide6.QtGui.QPixmap, PySide6.QtGui.QImage, str]) -> PySide6.QtCore.QRect
itemTextRect(self, fm: PySide6.QtGui.QFontMetrics, r: PySide6.QtCore.QRect, flags: int, enabled: bool, text: str) -> PySide6.QtCore.QRect
killTimer(self, id: int) -> None
layoutSpacing(self, control1: PySide6.QtWidgets.QSizePolicy.ControlType, control2: PySide6.QtWidgets.QSizePolicy.ControlType, orientation: PySide6.QtCore.Qt.Orientation, option: Optional[PySide6.QtWidgets.QStyleOption] = None, widget: Optional[PySide6.QtWidgets.QWidget] = None) -> int
metaObject(self) -> PySide6.QtCore.QMetaObject
moveToThread(self, thread: PySide6.QtCore.QThread) -> None
name(self) -> str
objectName(self) -> str
parent(self) -> PySide6.QtCore.QObject
pixelMetric(self, metric: PySide6.QtWidgets.QStyle.PixelMetric, option: Optional[PySide6.QtWidgets.QStyleOption] = None, widget: Optional[PySide6.QtWidgets.QWidget] = None) -> int
polish(self, application: PySide6.QtWidgets.QApplication) -> None polish(self, palette: Union[PySide6.QtGui.QPalette, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor]) -> None polish(self, widget: PySide6.QtWidgets.QWidget) -> None
property(self, name: str) -> Any
proxy(self) -> PySide6.QtWidgets.QStyle
receivers(self, signal: bytes) -> int
removeEventFilter(self, obj: PySide6.QtCore.QObject) -> None
sender(self) -> PySide6.QtCore.QObject
senderSignalIndex(self) -> int
setObjectName(self, name: str) -> None
setParent(self, parent: Optional[PySide6.QtCore.QObject]) -> None
setProperty(self, name: str, value: Any) -> bool
signalsBlocked(self) -> bool
sizeFromContents(self, ct: PySide6.QtWidgets.QStyle.ContentsType, opt: PySide6.QtWidgets.QStyleOption, contentsSize: PySide6.QtCore.QSize, w: Optional[PySide6.QtWidgets.QWidget] = None) -> PySide6.QtCore.QSize
sliderPositionFromValue(min: int, max: int, val: int, space: int, upsideDown: bool = False) -> int
sliderValueFromPosition(min: int, max: int, pos: int, space: int, upsideDown: bool = False) -> int
standardIcon(self, standardIcon: PySide6.QtWidgets.QStyle.StandardPixmap, option: Optional[PySide6.QtWidgets.QStyleOption] = None, widget: Optional[PySide6.QtWidgets.QWidget] = None) -> PySide6.QtGui.QIcon
standardPalette(self) -> PySide6.QtGui.QPalette
standardPixmap(self, standardPixmap: PySide6.QtWidgets.QStyle.StandardPixmap, opt: Optional[PySide6.QtWidgets.QStyleOption] = None, widget: Optional[PySide6.QtWidgets.QWidget] = None) -> PySide6.QtGui.QPixmap
startTimer(self, interval: int, timerType: PySide6.QtCore.Qt.TimerType = Instance(Qt.CoarseTimer)) -> int
styleHint(self, stylehint: PySide6.QtWidgets.QStyle.StyleHint, opt: Optional[PySide6.QtWidgets.QStyleOption] = None, widget: Optional[PySide6.QtWidgets.QWidget] = None, returnData: Optional[PySide6.QtWidgets.QStyleHintReturn] = None) -> int
subControlRect(self, cc: PySide6.QtWidgets.QStyle.ComplexControl, opt: PySide6.QtWidgets.QStyleOptionComplex, sc: PySide6.QtWidgets.QStyle.SubControl, widget: Optional[PySide6.QtWidgets.QWidget] = None) -> PySide6.QtCore.QRect
subElementRect(self, subElement: PySide6.QtWidgets.QStyle.SubElement, option: PySide6.QtWidgets.QStyleOption, widget: Optional[PySide6.QtWidgets.QWidget] = None) -> PySide6.QtCore.QRect
thread(self) -> PySide6.QtCore.QThread
timerEvent(self, event: PySide6.QtCore.QTimerEvent) -> None
tr(self, sourceText: str, disambiguation: Optional[str], n: int = -1) -> str
unpolish(self, application: PySide6.QtWidgets.QApplication) -> None unpolish(self, widget: PySide6.QtWidgets.QWidget) -> None
visualAlignment(direction: PySide6.QtCore.Qt.LayoutDirection, alignment: PySide6.QtCore.Qt.AlignmentFlag) -> PySide6.QtCore.Qt.AlignmentFlag
visualPos(direction: PySide6.QtCore.Qt.LayoutDirection, boundingRect: PySide6.QtCore.QRect, logicalPos: PySide6.QtCore.QPoint) -> PySide6.QtCore.QPoint
visualRect(direction: PySide6.QtCore.Qt.LayoutDirection, boundingRect: PySide6.QtCore.QRect, logicalRect: PySide6.QtCore.QRect) -> PySide6.QtCore.QRect
Attributes
destroyedobjectNameChangedstaticMetaObject- class ComplexControl(value)
Bases:
IntEnum- __add__(value, /)
Return self+value.
- __mul__(value, /)
Return self*value.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- conjugate()
Returns self, the complex conjugate of any int.
- denominator
the denominator of a rational number in lowest terms
- classmethod from_bytes(bytes, byteorder='big', *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value. Default is to use ‘big’.
- signed
Indicates whether two’s complement is used to represent the integer.
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- real
the real part of a complex number
- to_bytes(length=1, byteorder='big', *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. Default is length 1.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value. Default is to use ‘big’.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- class ContentsType(value)
Bases:
IntEnum- __add__(value, /)
Return self+value.
- __mul__(value, /)
Return self*value.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- conjugate()
Returns self, the complex conjugate of any int.
- denominator
the denominator of a rational number in lowest terms
- classmethod from_bytes(bytes, byteorder='big', *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value. Default is to use ‘big’.
- signed
Indicates whether two’s complement is used to represent the integer.
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- real
the real part of a complex number
- to_bytes(length=1, byteorder='big', *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. Default is length 1.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value. Default is to use ‘big’.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- class ControlElement(value)
Bases:
IntEnum- __add__(value, /)
Return self+value.
- __mul__(value, /)
Return self*value.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- conjugate()
Returns self, the complex conjugate of any int.
- denominator
the denominator of a rational number in lowest terms
- classmethod from_bytes(bytes, byteorder='big', *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value. Default is to use ‘big’.
- signed
Indicates whether two’s complement is used to represent the integer.
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- real
the real part of a complex number
- to_bytes(length=1, byteorder='big', *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. Default is length 1.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value. Default is to use ‘big’.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- class PixelMetric(value)
Bases:
IntEnum- __add__(value, /)
Return self+value.
- __mul__(value, /)
Return self*value.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- conjugate()
Returns self, the complex conjugate of any int.
- denominator
the denominator of a rational number in lowest terms
- classmethod from_bytes(bytes, byteorder='big', *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value. Default is to use ‘big’.
- signed
Indicates whether two’s complement is used to represent the integer.
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- real
the real part of a complex number
- to_bytes(length=1, byteorder='big', *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. Default is length 1.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value. Default is to use ‘big’.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- class PrimitiveElement(value)
Bases:
IntEnum- __add__(value, /)
Return self+value.
- __mul__(value, /)
Return self*value.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- conjugate()
Returns self, the complex conjugate of any int.
- denominator
the denominator of a rational number in lowest terms
- classmethod from_bytes(bytes, byteorder='big', *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value. Default is to use ‘big’.
- signed
Indicates whether two’s complement is used to represent the integer.
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- real
the real part of a complex number
- to_bytes(length=1, byteorder='big', *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. Default is length 1.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value. Default is to use ‘big’.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- class RequestSoftwareInputPanel(value)
Bases:
Enum
- class StandardPixmap(value)
Bases:
IntEnum- __add__(value, /)
Return self+value.
- __mul__(value, /)
Return self*value.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- conjugate()
Returns self, the complex conjugate of any int.
- denominator
the denominator of a rational number in lowest terms
- classmethod from_bytes(bytes, byteorder='big', *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value. Default is to use ‘big’.
- signed
Indicates whether two’s complement is used to represent the integer.
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- real
the real part of a complex number
- to_bytes(length=1, byteorder='big', *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. Default is length 1.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value. Default is to use ‘big’.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- class StateFlag(value)
Bases:
Flag
- class StyleHint(value)
Bases:
IntEnum- __add__(value, /)
Return self+value.
- __mul__(value, /)
Return self*value.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- conjugate()
Returns self, the complex conjugate of any int.
- denominator
the denominator of a rational number in lowest terms
- classmethod from_bytes(bytes, byteorder='big', *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value. Default is to use ‘big’.
- signed
Indicates whether two’s complement is used to represent the integer.
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- real
the real part of a complex number
- to_bytes(length=1, byteorder='big', *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. Default is length 1.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value. Default is to use ‘big’.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- class SubControl(value)
Bases:
Flag
- class SubElement(value)
Bases:
IntEnum- __add__(value, /)
Return self+value.
- __mul__(value, /)
Return self*value.
- as_integer_ratio()
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
>>> (10).as_integer_ratio() (10, 1) >>> (-10).as_integer_ratio() (-10, 1) >>> (0).as_integer_ratio() (0, 1)
- bit_count()
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3
- bit_length()
Number of bits necessary to represent self in binary.
>>> bin(37) '0b100101' >>> (37).bit_length() 6
- conjugate()
Returns self, the complex conjugate of any int.
- denominator
the denominator of a rational number in lowest terms
- classmethod from_bytes(bytes, byteorder='big', *, signed=False)
Return the integer represented by the given array of bytes.
- bytes
Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value. Default is to use ‘big’.
- signed
Indicates whether two’s complement is used to represent the integer.
- imag
the imaginary part of a complex number
- numerator
the numerator of a rational number in lowest terms
- real
the real part of a complex number
- to_bytes(length=1, byteorder='big', *, signed=False)
Return an array of bytes representing an integer.
- length
Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. Default is length 1.
- byteorder
The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value. Default is to use ‘big’.
- signed
Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
- static alignedRect(direction: PySide6.QtCore.Qt.LayoutDirection, alignment: PySide6.QtCore.Qt.AlignmentFlag, size: PySide6.QtCore.QSize, rectangle: PySide6.QtCore.QRect) PySide6.QtCore.QRect
- blockSignals(self, b: bool) bool
- childEvent(self, event: PySide6.QtCore.QChildEvent) None
- children(self) List[PySide6.QtCore.QObject]
- combinedLayoutSpacing(self, controls1: PySide6.QtWidgets.QSizePolicy.ControlType, controls2: PySide6.QtWidgets.QSizePolicy.ControlType, orientation: PySide6.QtCore.Qt.Orientation, option: PySide6.QtWidgets.QStyleOption | None = None, widget: PySide6.QtWidgets.QWidget | None = None) int
- 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
- 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
- drawComplexControl(self, cc: PySide6.QtWidgets.QStyle.ComplexControl, opt: PySide6.QtWidgets.QStyleOptionComplex, p: PySide6.QtGui.QPainter, widget: PySide6.QtWidgets.QWidget | None = None) None
- drawControl(self, element: PySide6.QtWidgets.QStyle.ControlElement, opt: PySide6.QtWidgets.QStyleOption, p: PySide6.QtGui.QPainter, widget: PySide6.QtWidgets.QWidget | None = None) None
- drawItemPixmap(self, painter: PySide6.QtGui.QPainter, rect: PySide6.QtCore.QRect, alignment: int, pixmap: PySide6.QtGui.QPixmap | PySide6.QtGui.QImage | str) None
- drawItemText(self, painter: PySide6.QtGui.QPainter, rect: PySide6.QtCore.QRect, flags: int, pal: PySide6.QtGui.QPalette | PySide6.QtCore.Qt.GlobalColor | PySide6.QtGui.QColor, enabled: bool, text: str, textRole: PySide6.QtGui.QPalette.ColorRole = Instance(PySide6.QtGui.QPalette.NoRole)) None
- drawPrimitive(self, pe: PySide6.QtWidgets.QStyle.PrimitiveElement, opt: PySide6.QtWidgets.QStyleOption, p: PySide6.QtGui.QPainter, widget: PySide6.QtWidgets.QWidget | None = None) None
- 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
- generatedIconPixmap(self, iconMode: PySide6.QtGui.QIcon.Mode, pixmap: PySide6.QtGui.QPixmap | PySide6.QtGui.QImage | str, opt: PySide6.QtWidgets.QStyleOption) PySide6.QtGui.QPixmap
- hitTestComplexControl(self, cc: PySide6.QtWidgets.QStyle.ComplexControl, opt: PySide6.QtWidgets.QStyleOptionComplex, pt: PySide6.QtCore.QPoint, widget: PySide6.QtWidgets.QWidget | None = None) PySide6.QtWidgets.QStyle.SubControl
- 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
- itemPixmapRect(self, r: PySide6.QtCore.QRect, flags: int, pixmap: PySide6.QtGui.QPixmap | PySide6.QtGui.QImage | str) PySide6.QtCore.QRect
- itemTextRect(self, fm: PySide6.QtGui.QFontMetrics, r: PySide6.QtCore.QRect, flags: int, enabled: bool, text: str) PySide6.QtCore.QRect
- killTimer(self, id: int) None
- layoutSpacing(self, control1: PySide6.QtWidgets.QSizePolicy.ControlType, control2: PySide6.QtWidgets.QSizePolicy.ControlType, orientation: PySide6.QtCore.Qt.Orientation, option: PySide6.QtWidgets.QStyleOption | None = None, widget: PySide6.QtWidgets.QWidget | None = None) int
- metaObject(self) PySide6.QtCore.QMetaObject
- moveToThread(self, thread: PySide6.QtCore.QThread) None
- name(self) str
- objectName(self) str
- parent(self) PySide6.QtCore.QObject
- pixelMetric(self, metric: PySide6.QtWidgets.QStyle.PixelMetric, option: PySide6.QtWidgets.QStyleOption | None = None, widget: PySide6.QtWidgets.QWidget | None = None) int
- polish(self, application: PySide6.QtWidgets.QApplication) None
- polish(self, palette: PySide6.QtGui.QPalette | PySide6.QtCore.Qt.GlobalColor | PySide6.QtGui.QColor) None
- polish(self, widget: PySide6.QtWidgets.QWidget) None
- property(self, name: str) Any
- proxy(self) PySide6.QtWidgets.QStyle
- receivers(self, signal: bytes) int
- removeEventFilter(self, obj: PySide6.QtCore.QObject) None
- sender(self) PySide6.QtCore.QObject
- senderSignalIndex(self) int
- setObjectName(self, name: str) None
- setParent(self, parent: PySide6.QtCore.QObject | None) None
- setProperty(self, name: str, value: Any) bool
- signalsBlocked(self) bool
- sizeFromContents(self, ct: PySide6.QtWidgets.QStyle.ContentsType, opt: PySide6.QtWidgets.QStyleOption, contentsSize: PySide6.QtCore.QSize, w: PySide6.QtWidgets.QWidget | None = None) PySide6.QtCore.QSize
- static sliderPositionFromValue(min: int, max: int, val: int, space: int, upsideDown: bool = False) int
- static sliderValueFromPosition(min: int, max: int, pos: int, space: int, upsideDown: bool = False) int
- standardIcon(self, standardIcon: PySide6.QtWidgets.QStyle.StandardPixmap, option: PySide6.QtWidgets.QStyleOption | None = None, widget: PySide6.QtWidgets.QWidget | None = None) PySide6.QtGui.QIcon
- standardPalette(self) PySide6.QtGui.QPalette
- standardPixmap(self, standardPixmap: PySide6.QtWidgets.QStyle.StandardPixmap, opt: PySide6.QtWidgets.QStyleOption | None = None, widget: PySide6.QtWidgets.QWidget | None = None) PySide6.QtGui.QPixmap
- startTimer(self, interval: int, timerType: PySide6.QtCore.Qt.TimerType = Instance(Qt.CoarseTimer)) int
- styleHint(self, stylehint: PySide6.QtWidgets.QStyle.StyleHint, opt: PySide6.QtWidgets.QStyleOption | None = None, widget: PySide6.QtWidgets.QWidget | None = None, returnData: PySide6.QtWidgets.QStyleHintReturn | None = None) int
- subControlRect(self, cc: PySide6.QtWidgets.QStyle.ComplexControl, opt: PySide6.QtWidgets.QStyleOptionComplex, sc: PySide6.QtWidgets.QStyle.SubControl, widget: PySide6.QtWidgets.QWidget | None = None) PySide6.QtCore.QRect
- subElementRect(self, subElement: PySide6.QtWidgets.QStyle.SubElement, option: PySide6.QtWidgets.QStyleOption, widget: PySide6.QtWidgets.QWidget | None = None) PySide6.QtCore.QRect
- thread(self) PySide6.QtCore.QThread
- timerEvent(self, event: PySide6.QtCore.QTimerEvent) None
- classmethod tr(self, sourceText: str, disambiguation: str | None, n: int = -1) str
- unpolish(self, application: PySide6.QtWidgets.QApplication) None
- unpolish(self, widget: PySide6.QtWidgets.QWidget) None
- static visualAlignment(direction: PySide6.QtCore.Qt.LayoutDirection, alignment: PySide6.QtCore.Qt.AlignmentFlag) PySide6.QtCore.Qt.AlignmentFlag
- static visualPos(direction: PySide6.QtCore.Qt.LayoutDirection, boundingRect: PySide6.QtCore.QRect, logicalPos: PySide6.QtCore.QPoint) PySide6.QtCore.QPoint
- static visualRect(direction: PySide6.QtCore.Qt.LayoutDirection, boundingRect: PySide6.QtCore.QRect, logicalRect: PySide6.QtCore.QRect) PySide6.QtCore.QRect