#### PyKDE - Python Bindings for KDE

# class TDEStyle |
Table of contents
Modules
tdefx Classes
All Classes

Module | tdefx
Class | TDEStyle
Inherits | TQCommonStyle

### enums

- TDEStyleOption = {Default, AllowMenuTransparency, FilledFrameWorkaround }
- TDEStylePixelMetric = {KPM_MenuItemSeparatorHeight, KPM_MenuItemHMargin, KPM_MenuItemVMargin, KPM_MenuItemHFrame, KPM_MenuItemVFrame, KPM_MenuItemCheckMarkHMargin, KPM_MenuItemArrowHMargin, KPM_MenuItemTabSpacing, KPM_ListViewBranchThickness }
- TDEStylePrimitive = {KPE_DockWindowHandle, KPE_ToolBarHandle, KPE_GeneralHandle, KPE_SliderGroove, KPE_SliderHandle, KPE_ListViewExpander, KPE_ListViewBranch }
- TDEStyleScrollBarType = {WindowsStyleScrollBar, PlatinumStyleScrollBar, ThreeButtonScrollBar, NextStyleScrollBar }

### methods

- TDEStyle (flags = TDEStyle .Default, sbtype = TDEStyle .WindowsStyleScrollBar)

  returns a TDEStyle instance
  Argument | Type | Default
  --- | --- | ---
  flags | TDEStyle.TDEStyleFlags | TDEStyle .Default
  sbtype | TDEStyle.TDEStyleScrollBarType | TDEStyle .WindowsStyleScrollBar

- TDEStyle (a0)

  returns a TDEStyle instance
  Argument | Type | Default
  --- | --- | ---
  a0 | TDEStyle |

- defaultStyle ()

  returns (TQString)
  In versions KDE 3.1.0 and above only
  static

- drawComplexControl (control, p, widget, r, cg, flags = Style_Default, controls = SC_All, active = SC_None, a0 = TQStyleOption (TQStyleOption .Default ))

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  control | ComplexControl |
  p | TQPainter |
  widget | TQWidget |
  r | TQRect |
  cg | TQColorGroup |
  flags | SFlags | Style_Default
  controls | SCFlags | SC_All
  active | SCFlags | SC_None
  a0 | TQStyleOption | TQStyleOption (TQStyleOption .Default )

- drawControl (element, p, widget, r, cg, flags = Style_Default, a0 = TQStyleOption (TQStyleOption .Default ))

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  element | ControlElement |
  p | TQPainter |
  widget | TQWidget |
  r | TQRect |
  cg | TQColorGroup |
  flags | SFlags | Style_Default
  a0 | TQStyleOption | TQStyleOption (TQStyleOption .Default )

- drawTDEStylePrimitive (kpe, p, widget, r, cg, flags = Style_Default, a0 = TQStyleOption (TQStyleOption .Default ))

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  kpe | TDEStyle.TDEStylePrimitive |
  p | TQPainter |
  widget | TQWidget |
  r | TQRect |
  cg | TQColorGroup |
  flags | SFlags | Style_Default
  a0 | TQStyleOption | TQStyleOption (TQStyleOption .Default )

- drawPrimitive (pe, p, r, cg, flags = Style_Default, a0 = TQStyleOption (TQStyleOption .Default ))

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  pe | PrimitiveElement |
  p | TQPainter |
  r | TQRect |
  cg | TQColorGroup |
  flags | SFlags | Style_Default
  a0 | TQStyleOption | TQStyleOption (TQStyleOption .Default )

- eventFilter (object, event)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  object | TQObject |
  event | TQEvent |

- kPixelMetric (kpm, widget = 0)

  returns (int)
  Argument | Type | Default
  --- | --- | ---
  kpm | TDEStyle.TDEStylePixelMetric |
  widget | TQWidget | 0

- pixelMetric (m, widget = 0)

  returns (int)
  Argument | Type | Default
  --- | --- | ---
  m | PixelMetric |
  widget | TQWidget | 0

- polish (widget)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  widget | TQWidget |

- polishPopupMenu (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | TQPopupMenu |

- querySubControl (control, widget, pos, a0 = TQStyleOption (TQStyleOption .Default ))

  returns (SubControl)
  Argument | Type | Default
  --- | --- | ---
  control | ComplexControl |
  widget | TQWidget |
  pos | TQPoint |
  a0 | TQStyleOption | TQStyleOption (TQStyleOption .Default )

- querySubControlMetrics (control, widget, sc, a0 = TQStyleOption (TQStyleOption .Default ))

  returns (TQRect)
  Argument | Type | Default
  --- | --- | ---
  control | ComplexControl |
  widget | TQWidget |
  sc | SubControl |
  a0 | TQStyleOption | TQStyleOption (TQStyleOption .Default )

- renderMenuBlendPixmap (pix, cg, popup)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  pix | KPixmap |
  cg | TQColorGroup |
  popup | TQPopupMenu |

- setScrollBarType (sbtype)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  sbtype | TDEStyle.TDEStyleScrollBarType |

- styleFlags ()

  returns (TDEStyle.TDEStyleFlags)

- styleHint (sh, w = 0, opt = TQStyleOption (TQStyleOption .Default ), shr = 0)

  returns (int)
  Argument | Type | Default
  --- | --- | ---
  sh | StyleHint |
  w | TQWidget | 0
  opt | TQStyleOption | TQStyleOption (TQStyleOption .Default )
  shr | TQStyleHintReturn | 0

- stylePixmap (stylepixmap, widget = 0, a0 = TQStyleOption (TQStyleOption .Default ))

  returns (TQPixmap)
  Argument | Type | Default
  --- | --- | ---
  stylepixmap | StylePixmap |
  widget | TQWidget | 0
  a0 | TQStyleOption | TQStyleOption (TQStyleOption .Default )

- subRect (r, widget)

  returns (TQRect)
  Argument | Type | Default
  --- | --- | ---
  r | SubRect |
  widget | TQWidget |

- unPolish (widget)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  widget | TQWidget |