Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « PySide2.QtGui »

Classe « QPalette »

Informations générales

Héritage

builtins.object
    Object
        QPalette

Définition

class QPalette(Object):

Description [extrait de QPalette.__doc__]

QPalette(self)
QPalette(self, button: PySide2.QtCore.Qt.GlobalColor)
QPalette(self, button: PySide2.QtGui.QColor)
QPalette(self, button: PySide2.QtGui.QColor, window: PySide2.QtGui.QColor)
QPalette(self, palette: PySide2.QtGui.QPalette)
QPalette(self, windowText: PySide2.QtGui.QBrush, button: PySide2.QtGui.QBrush, light: PySide2.QtGui.QBrush, dark: PySide2.QtGui.QBrush, mid: PySide2.QtGui.QBrush, text: PySide2.QtGui.QBrush, bright_text: PySide2.QtGui.QBrush, base: PySide2.QtGui.QBrush, window: PySide2.QtGui.QBrush)
QPalette(self, windowText: PySide2.QtGui.QColor, window: PySide2.QtGui.QColor, light: PySide2.QtGui.QColor, dark: PySide2.QtGui.QColor, mid: PySide2.QtGui.QColor, text: PySide2.QtGui.QColor, base: PySide2.QtGui.QColor)

Constructeur(s)

Signature du constructeur Description
__new__(*args, **kwargs) Create and return a new object. See help(type) for accurate signature. [extrait de __new__.__doc__]
__init__(self, /, *args, **kwargs) Initialize self. See help(type(self)) for accurate signature. [extrait de __init__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
ActivePySide2.QtGui.QPalette.ColorGroup.Active
AllPySide2.QtGui.QPalette.ColorGroup.All
AlternateBasePySide2.QtGui.QPalette.ColorRole.AlternateBase
BackgroundPySide2.QtGui.QPalette.ColorRole.Background
BasePySide2.QtGui.QPalette.ColorRole.Base
BrightTextPySide2.QtGui.QPalette.ColorRole.BrightText
ButtonPySide2.QtGui.QPalette.ColorRole.Button
ButtonTextPySide2.QtGui.QPalette.ColorRole.ButtonText
CurrentPySide2.QtGui.QPalette.ColorGroup.Current
DarkPySide2.QtGui.QPalette.ColorRole.Dark
DisabledPySide2.QtGui.QPalette.ColorGroup.Disabled
ForegroundPySide2.QtGui.QPalette.ColorRole.Foreground
HighlightPySide2.QtGui.QPalette.ColorRole.Highlight
HighlightedTextPySide2.QtGui.QPalette.ColorRole.HighlightedText
InactivePySide2.QtGui.QPalette.ColorGroup.Inactive
LightPySide2.QtGui.QPalette.ColorRole.Light
LinkPySide2.QtGui.QPalette.ColorRole.Link
LinkVisitedPySide2.QtGui.QPalette.ColorRole.LinkVisited
MidPySide2.QtGui.QPalette.ColorRole.Mid
MidlightPySide2.QtGui.QPalette.ColorRole.Midlight
NColorGroupsPySide2.QtGui.QPalette.ColorGroup.NColorGroups
NColorRolesPySide2.QtGui.QPalette.ColorRole.NColorRoles
NormalPySide2.QtGui.QPalette.ColorGroup.Normal
NoRolePySide2.QtGui.QPalette.ColorRole.NoRole
PlaceholderTextPySide2.QtGui.QPalette.ColorRole.PlaceholderText
ShadowPySide2.QtGui.QPalette.ColorRole.Shadow
TextPySide2.QtGui.QPalette.ColorRole.Text
ToolTipBasePySide2.QtGui.QPalette.ColorRole.ToolTipBase
ToolTipTextPySide2.QtGui.QPalette.ColorRole.ToolTipText
WindowPySide2.QtGui.QPalette.ColorRole.Window
WindowTextPySide2.QtGui.QPalette.ColorRole.WindowText

Liste des opérateurs

Signature de l'opérateur Description
__eq__(self, value) Return self==value. [extrait de __eq__.__doc__]
__ge__(self, value) Return self>=value. [extrait de __ge__.__doc__]
__gt__(self, value) Return self>value. [extrait de __gt__.__doc__]
__le__(self, value) Return self<=value. [extrait de __le__.__doc__]
__lshift__(self, ds: PySide2.QtCore.QDataStream) -> PySide2.QtCore.QDataStream __lshift__(self, ds: PySide2.QtCore.QDataStream) -> PySide2.QtCore.QDataStream [extrait de __lshift__.__doc__]
__lt__(self, value) Return self<value. [extrait de __lt__.__doc__]
__ne__(self, value) Return self!=value. [extrait de __ne__.__doc__]
__rlshift__(self, value) Return value<<self. [extrait de __rlshift__.__doc__]
__rrshift__(self, value) Return value>>self. [extrait de __rrshift__.__doc__]
__rshift__(self, ds: PySide2.QtCore.QDataStream) -> PySide2.QtCore.QDataStream __rshift__(self, ds: PySide2.QtCore.QDataStream) -> PySide2.QtCore.QDataStream [extrait de __rshift__.__doc__]

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__copy__(self) __copy__(self) [extrait de __copy__.__doc__]
__repr__(self) Return repr(self). [extrait de __repr__.__doc__]
alternateBase(self) -> PySide2.QtGui.QBrush alternateBase(self) -> PySide2.QtGui.QBrush [extrait de alternateBase.__doc__]
background(self) -> PySide2.QtGui.QBrush background(self) -> PySide2.QtGui.QBrush [extrait de background.__doc__]
base(self) -> PySide2.QtGui.QBrush base(self) -> PySide2.QtGui.QBrush [extrait de base.__doc__]
brightText(self) -> PySide2.QtGui.QBrush brightText(self) -> PySide2.QtGui.QBrush [extrait de brightText.__doc__]
brush brush(self, cg: PySide2.QtGui.QPalette.ColorGroup, cr: PySide2.QtGui.QPalette.ColorRole) -> PySide2.QtGui.QBrush [extrait de brush.__doc__]
button(self) -> PySide2.QtGui.QBrush button(self) -> PySide2.QtGui.QBrush [extrait de button.__doc__]
buttonText(self) -> PySide2.QtGui.QBrush buttonText(self) -> PySide2.QtGui.QBrush [extrait de buttonText.__doc__]
cacheKey(self) -> int cacheKey(self) -> int [extrait de cacheKey.__doc__]
color color(self, cg: PySide2.QtGui.QPalette.ColorGroup, cr: PySide2.QtGui.QPalette.ColorRole) -> PySide2.QtGui.QColor [extrait de color.__doc__]
ColorGroup
ColorRole
currentColorGroup(self) -> PySide2.QtGui.QPalette.ColorGroup currentColorGroup(self) -> PySide2.QtGui.QPalette.ColorGroup [extrait de currentColorGroup.__doc__]
dark(self) -> PySide2.QtGui.QBrush dark(self) -> PySide2.QtGui.QBrush [extrait de dark.__doc__]
foreground(self) -> PySide2.QtGui.QBrush foreground(self) -> PySide2.QtGui.QBrush [extrait de foreground.__doc__]
highlight(self) -> PySide2.QtGui.QBrush highlight(self) -> PySide2.QtGui.QBrush [extrait de highlight.__doc__]
highlightedText(self) -> PySide2.QtGui.QBrush highlightedText(self) -> PySide2.QtGui.QBrush [extrait de highlightedText.__doc__]
isBrushSet(self, cg: PySide2.QtGui.QPalette.ColorGroup, cr: PySide2.QtGui.QPalette.ColorRole) -> bool isBrushSet(self, cg: PySide2.QtGui.QPalette.ColorGroup, cr: PySide2.QtGui.QPalette.ColorRole) -> bool [extrait de isBrushSet.__doc__]
isCopyOf(self, p: PySide2.QtGui.QPalette) -> bool isCopyOf(self, p: PySide2.QtGui.QPalette) -> bool [extrait de isCopyOf.__doc__]
isEqual(self, cr1: PySide2.QtGui.QPalette.ColorGroup, cr2: PySide2.QtGui.QPalette.ColorGroup) -> bool isEqual(self, cr1: PySide2.QtGui.QPalette.ColorGroup, cr2: PySide2.QtGui.QPalette.ColorGroup) -> bool [extrait de isEqual.__doc__]
light(self) -> PySide2.QtGui.QBrush light(self) -> PySide2.QtGui.QBrush [extrait de light.__doc__]
link(self) -> PySide2.QtGui.QBrush link(self) -> PySide2.QtGui.QBrush [extrait de link.__doc__]
linkVisited(self) -> PySide2.QtGui.QBrush linkVisited(self) -> PySide2.QtGui.QBrush [extrait de linkVisited.__doc__]
mid(self) -> PySide2.QtGui.QBrush mid(self) -> PySide2.QtGui.QBrush [extrait de mid.__doc__]
midlight(self) -> PySide2.QtGui.QBrush midlight(self) -> PySide2.QtGui.QBrush [extrait de midlight.__doc__]
placeholderText(self) -> PySide2.QtGui.QBrush placeholderText(self) -> PySide2.QtGui.QBrush [extrait de placeholderText.__doc__]
resolve resolve(self) -> int [extrait de resolve.__doc__]
setBrush setBrush(self, cg: PySide2.QtGui.QPalette.ColorGroup, cr: PySide2.QtGui.QPalette.ColorRole, brush: PySide2.QtGui.QBrush) [extrait de setBrush.__doc__]
setColor setColor(self, cg: PySide2.QtGui.QPalette.ColorGroup, cr: PySide2.QtGui.QPalette.ColorRole, color: PySide2.QtGui.QColor) [extrait de setColor.__doc__]
setColorGroup(self, cr: PySide2.QtGui.QPalette.ColorGroup, windowText: PySide2.QtGui.QBrush, button: PySide2.QtGui.QBrush, light: PySide2.QtGui.QBrush, dark: PySide2.QtGui.QBrush, mid: PySide2.QtGui.QBrush, text: PySide2.QtGui.QBrush, bright_text: PySide2.QtGui.QBrush, base: PySide2.QtGui.QBrush, window: PySide2.QtGui.QBrush) setColorGroup(self, cr: PySide2.QtGui.QPalette.ColorGroup, windowText: PySide2.QtGui.QBrush, button: PySide2.QtGui.QBrush, light: PySide2.QtGui.QBrush, dark: PySide2.QtGui.QBrush, mid: PySide2.QtGui.QBrush, text: PySide2.QtGui.QBrush, bright_text: PySide2.QtGui.QBrush, base: PySide2.QtGui.QBrush, window: PySide2.QtGui.QBrush) [extrait de setColorGroup.__doc__]
setCurrentColorGroup(self, cg: PySide2.QtGui.QPalette.ColorGroup) setCurrentColorGroup(self, cg: PySide2.QtGui.QPalette.ColorGroup) [extrait de setCurrentColorGroup.__doc__]
shadow(self) -> PySide2.QtGui.QBrush shadow(self) -> PySide2.QtGui.QBrush [extrait de shadow.__doc__]
swap(self, other: PySide2.QtGui.QPalette) swap(self, other: PySide2.QtGui.QPalette) [extrait de swap.__doc__]
text(self) -> PySide2.QtGui.QBrush text(self) -> PySide2.QtGui.QBrush [extrait de text.__doc__]
toolTipBase(self) -> PySide2.QtGui.QBrush toolTipBase(self) -> PySide2.QtGui.QBrush [extrait de toolTipBase.__doc__]
toolTipText(self) -> PySide2.QtGui.QBrush toolTipText(self) -> PySide2.QtGui.QBrush [extrait de toolTipText.__doc__]
window(self) -> PySide2.QtGui.QBrush window(self) -> PySide2.QtGui.QBrush [extrait de window.__doc__]
windowText(self) -> PySide2.QtGui.QBrush windowText(self) -> PySide2.QtGui.QBrush [extrait de windowText.__doc__]

Méthodes héritées de la classe Object

__init_subclass__, __subclasshook__

Méthodes héritées de la classe object

__delattr__, __dir__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__