nukescripts.cache.Qt
- class nukescripts.cache.Qt
Bases:
Shiboken.Object
Methods
- class AlignmentFlag(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.IntFlag
- __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
- from_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 AnchorPoint(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class ApplicationAttribute(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class ApplicationState(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Flag
- class ArrowType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class AspectRatioMode(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class Axis(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class BGMode(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class BrushStyle(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class CaseSensitivity(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class CheckState(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class ChecksumType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class ClipOperation(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class ColorScheme(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class ConnectionType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class ContextMenuPolicy(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class CoordinateSystem(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class Corner(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class CursorMoveStyle(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class CursorShape(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class DateFormat(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class DayOfWeek(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class DockWidgetArea(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Flag
- class DockWidgetAreaSizes(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class DropAction(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Flag
- class Edge(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Flag
- class EnterKeyType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class EventPriority(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class FillRule(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class FindChildOption(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Flag
- class FocusPolicy(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.IntFlag
- __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
- from_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 FocusReason(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class GestureFlag(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Flag
- class GestureState(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class GestureType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.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
- from_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 GlobalColor(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class HighDpiScaleFactorRoundingPolicy(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class HitTestAccuracy(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class ImageConversionFlag(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Flag
- class InputMethodHint(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Flag
- class InputMethodQuery(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Flag
- class ItemDataRole(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.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
- from_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 ItemFlag(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Flag
- class ItemSelectionMode(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class ItemSelectionOperation(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class Key(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.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
- from_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 KeyboardModifier(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Flag
- class LayoutDirection(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class MaskMode(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class MatchFlag(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Flag
- class Modifier(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Flag
- class MouseButton(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Flag
- class MouseEventFlag(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Flag
- class MouseEventSource(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class NativeGestureType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
Bases:
enum.Enum
- class Orientation(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Flag
- class PenCapStyle(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class PenJoinStyle(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class PenStyle(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class PermissionStatus(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class ReturnByValueConstant(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class ScreenOrientation(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Flag
- class ScrollBarPolicy(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class ScrollPhase(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class ShortcutContext(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class SizeHint(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class SizeMode(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class SortOrder(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class SplitBehaviorFlags(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Flag
- class TabFocusBehavior(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class TextElideMode(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class TextFlag(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.IntFlag
- __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
- from_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 TextFormat(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class TextInteractionFlag(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Flag
- class TileRule(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class TimeSpec(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class TimerType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class ToolBarArea(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Flag
- class ToolBarAreaSizes(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class ToolButtonStyle(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class TouchPointState(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Flag
- class TransformationMode(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class UIEffect(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class WhiteSpaceMode(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class WidgetAttribute(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class WindowFrameSection(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class WindowModality(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Enum
- class WindowState(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.Flag
- class WindowType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
enum.IntFlag
- __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
- from_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 beginPropertyUpdateGroup() None
- static bin(s: PySide6.QtCore.QTextStream) PySide6.QtCore.QTextStream
- static bom(s: PySide6.QtCore.QTextStream) PySide6.QtCore.QTextStream
- static center(s: PySide6.QtCore.QTextStream) PySide6.QtCore.QTextStream
- static dec(s: PySide6.QtCore.QTextStream) PySide6.QtCore.QTextStream
- static endPropertyUpdateGroup() None
- static endl(s: PySide6.QtCore.QTextStream) PySide6.QtCore.QTextStream
- static fixed(s: PySide6.QtCore.QTextStream) PySide6.QtCore.QTextStream
- static flush(s: PySide6.QtCore.QTextStream) PySide6.QtCore.QTextStream
- static forcepoint(s: PySide6.QtCore.QTextStream) PySide6.QtCore.QTextStream
- static forcesign(s: PySide6.QtCore.QTextStream) PySide6.QtCore.QTextStream
- static hex(s: PySide6.QtCore.QTextStream) PySide6.QtCore.QTextStream
- static left(s: PySide6.QtCore.QTextStream) PySide6.QtCore.QTextStream
- static lowercasebase(s: PySide6.QtCore.QTextStream) PySide6.QtCore.QTextStream
- static lowercasedigits(s: PySide6.QtCore.QTextStream) PySide6.QtCore.QTextStream
- static noforcepoint(s: PySide6.QtCore.QTextStream) PySide6.QtCore.QTextStream
- static noforcesign(s: PySide6.QtCore.QTextStream) PySide6.QtCore.QTextStream
- static noshowbase(s: PySide6.QtCore.QTextStream) PySide6.QtCore.QTextStream
- static oct(s: PySide6.QtCore.QTextStream) PySide6.QtCore.QTextStream
- static reset(s: PySide6.QtCore.QTextStream) PySide6.QtCore.QTextStream
- static right(s: PySide6.QtCore.QTextStream) PySide6.QtCore.QTextStream
- static scientific(s: PySide6.QtCore.QTextStream) PySide6.QtCore.QTextStream
- static showbase(s: PySide6.QtCore.QTextStream) PySide6.QtCore.QTextStream
- static uppercasebase(s: PySide6.QtCore.QTextStream) PySide6.QtCore.QTextStream
- static uppercasedigits(s: PySide6.QtCore.QTextStream) PySide6.QtCore.QTextStream
- static ws(s: PySide6.QtCore.QTextStream) PySide6.QtCore.QTextStream