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__


转载于:https://www.cnblogs.com/wangshuo1/p/6747931.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值