QPalette

Help on class QPalette in module PyQt5.QtGui:

class QPalette(sip.simplewrapper)
 |  QPalette()
 |  QPalette(Union[QColor, Qt.GlobalColor, QGradient])
 |  QPalette(Qt.GlobalColor)
 |  QPalette(Union[QColor, Qt.GlobalColor, QGradient], Union[QColor, Qt.GlobalColor, QGradient])
 |  QPalette(Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient])
 |  QPalette(QPalette)
 |  QPalette(Any)
 |  
 |  Method resolution order:
 |      QPalette
 |      sip.simplewrapper
 |      builtins.object
 |  
 |  Methods defined here:
 |  
 |  __eq__(self, value, /)
 |      Return self==value.
 |  
 |  __ge__(self, value, /)
 |      Return self>=value.
 |  
 |  __gt__(self, value, /)
 |      Return self>value.
 |  
 |  __le__(self, value, /)
 |      Return self<=value.
 |  
 |  __lt__(self, value, /)
 |      Return self<value.
 |  
 |  __ne__(self, value, /)
 |      Return self!=value.
 |  
 |  alternateBase(...)
 |      alternateBase(self) -> QBrush
 |  
 |  base(...)
 |      base(self) -> QBrush
 |  
 |  brightText(...)
 |      brightText(self) -> QBrush
 |  
 |  brush(...)
 |      brush(self, QPalette.ColorGroup, QPalette.ColorRole) -> QBrush
 |      brush(self, QPalette.ColorRole) -> QBrush
 |  
 |  button(...)
 |      button(self) -> QBrush
 |  
 |  buttonText(...)
 |      buttonText(self) -> QBrush
 |  
 |  cacheKey(...)
 |      cacheKey(self) -> int
 |  
 |  color(...)
 |      color(self, QPalette.ColorGroup, QPalette.ColorRole) -> QColor
 |      color(self, QPalette.ColorRole) -> QColor
 |  
 |  currentColorGroup(...)
 |      currentColorGroup(self) -> QPalette.ColorGroup
 |  
 |  dark(...)
 |      dark(self) -> QBrush
 |  
 |  highlight(...)
 |      highlight(self) -> QBrush
 |  
 |  highlightedText(...)
 |      highlightedText(self) -> QBrush
 |  
 |  isBrushSet(...)
 |      isBrushSet(self, QPalette.ColorGroup, QPalette.ColorRole) -> bool
 |  
 |  isCopyOf(...)
 |      isCopyOf(self, QPalette) -> bool
 |  
 |  isEqual(...)
 |      isEqual(self, QPalette.ColorGroup, QPalette.ColorGroup) -> bool
 |  
 |  light(...)
 |      light(self) -> QBrush
 |  
 |  link(...)
 |      link(self) -> QBrush
 |  
 |  linkVisited(...)
 |      linkVisited(self) -> QBrush
 |  
 |  mid(...)
 |      mid(self) -> QBrush
 |  
 |  midlight(...)
 |      midlight(self) -> QBrush
 |  
 |  resolve(...)
 |      resolve(self, QPalette) -> QPalette
 |      resolve(self) -> int
 |      resolve(self, int)
 |  
 |  setBrush(...)
 |      setBrush(self, QPalette.ColorGroup, QPalette.ColorRole, Union[QBrush, QColor, Qt.GlobalColor, QGradient])
 |      setBrush(self, QPalette.ColorRole, Union[QBrush, QColor, Qt.GlobalColor, QGradient])
 |  
 |  setColor(...)
 |      setColor(self, QPalette.ColorGroup, QPalette.ColorRole, Union[QColor, Qt.GlobalColor, QGradient])
 |      setColor(self, QPalette.ColorRole, Union[QColor, Qt.GlobalColor, QGradient])
 |  
 |  setColorGroup(...)
 |      setColorGroup(self, QPalette.ColorGroup, Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient])
 |  
 |  setCurrentColorGroup(...)
 |      setCurrentColorGroup(self, QPalette.ColorGroup)
 |  
 |  shadow(...)
 |      shadow(self) -> QBrush
 |  
 |  swap(...)
 |      swap(self, QPalette)
 |  
 |  text(...)
 |      text(self) -> QBrush
 |  
 |  toolTipBase(...)
 |      toolTipBase(self) -> QBrush
 |  
 |  toolTipText(...)
 |      toolTipText(self) -> QBrush
 |  
 |  window(...)
 |      window(self) -> QBrush
 |  
 |  windowText(...)
 |      windowText(self) -> QBrush
 |  
 |  ----------------------------------------------------------------------
 |  Data descriptors defined here:
 |  
 |  __weakref__
 |      list of weak references to the object (if defined)
 |  
 |  ----------------------------------------------------------------------
 |  Data and other attributes defined here:
 |  
 |  Active = 0
 |  
 |  All = 5
 |  
 |  AlternateBase = 16
 |  
 |  Background = 10
 |  
 |  Base = 9
 |  
 |  BrightText = 7
 |  
 |  Button = 1
 |  
 |  ButtonText = 8
 |  
 |  ColorGroup = <class 'PyQt5.QtGui.QPalette.ColorGroup'>
 |      int(x=0) -> integer
 |      int(x, base=10) -> integer
 |      
 |      Convert a number or string to an integer, or return 0 if no arguments
 |      are given.  If x is a number, return x.__int__().  For floating point
 |      numbers, this truncates towards zero.
 |      
 |      If x is not a number or if base is given, then x must be a string,
 |      bytes, or bytearray instance representing an integer literal in the
 |      given base.  The literal can be preceded by '+' or '-' and be surrounded
 |      by whitespace.  The base defaults to 10.  Valid bases are 0 and 2-36.
 |      Base 0 means to interpret the base from the string as an integer literal.
 |      >>> int('0b100', base=0)
 |      4
 |  
 |  ColorRole = <class 'PyQt5.QtGui.QPalette.ColorRole'>
 |      int(x=0) -> integer
 |      int(x, base=10) -> integer
 |      
 |      Convert a number or string to an integer, or return 0 if no arguments
 |      are given.  If x is a number, return x.__int__().  For floating point
 |      numbers, this truncates towards zero.
 |      
 |      If x is not a number or if base is given, then x must be a string,
 |      bytes, or bytearray instance representing an integer literal in the
 |      given base.  The literal can be preceded by '+' or '-' and be surrounded
 |      by whitespace.  The base defaults to 10.  Valid bases are 0 and 2-36.
 |      Base 0 means to interpret the base from the string as an integer literal.
 |      >>> int('0b100', base=0)
 |      4
 |  
 |  Current = 4
 |  
 |  Dark = 4
 |  
 |  Disabled = 1
 |  
 |  Foreground = 0
 |  
 |  Highlight = 12
 |  
 |  HighlightedText = 13
 |  
 |  Inactive = 2
 |  
 |  Light = 2
 |  
 |  Link = 14
 |  
 |  LinkVisited = 15
 |  
 |  Mid = 5
 |  
 |  Midlight = 3
 |  
 |  NColorGroups = 3
 |  
 |  NColorRoles = 20
 |  
 |  NoRole = 17
 |  
 |  Normal = 0
 |  
 |  Shadow = 11
 |  
 |  Text = 6
 |  
 |  ToolTipBase = 18
 |  
 |  ToolTipText = 19
 |  
 |  Window = 10
 |  
 |  WindowText = 0
 |  
 |  __hash__ = None
 |  
 |  ----------------------------------------------------------------------
 |  Methods inherited from sip.simplewrapper:
 |  
 |  __init__(self, /, *args, **kwargs)
 |      Initialize self.  See help(type(self)) for accurate signature.
 |  
 |  __new__(*args, **kwargs) from sip.wrappertype
 |      Create and return a new object.  See help(type) for accurate signature.
 |  
 |  ----------------------------------------------------------------------
 |  Data descriptors inherited from sip.simplewrapper:
 |  
 |  __dict__


posted @ 2017-04-22 15:13  王信平  阅读(1595)  评论(0编辑  收藏  举报