PyKDE - Python Bindings for KDE
class KStyle
Table of contents
Modules
tdefx Classes
All Classes
Module
tdefx
Class
KStyle
Inherits
TQCommonStyle
enums
KStyleOption
= {Default, AllowMenuTransparency, FilledFrameWorkaround }
KStylePixelMetric
= {KPM_MenuItemSeparatorHeight, KPM_MenuItemHMargin, KPM_MenuItemVMargin, KPM_MenuItemHFrame, KPM_MenuItemVFrame, KPM_MenuItemCheckMarkHMargin, KPM_MenuItemArrowHMargin, KPM_MenuItemTabSpacing, KPM_ListViewBranchThickness }
KStylePrimitive
= {KPE_DockWindowHandle, KPE_ToolBarHandle, KPE_GeneralHandle, KPE_SliderGroove, KPE_SliderHandle, KPE_ListViewExpander, KPE_ListViewBranch }
KStyleScrollBarType
= {WindowsStyleScrollBar, PlatinumStyleScrollBar, ThreeButtonScrollBar, NextStyleScrollBar }
methods
KStyle
(flags = KStyle .Default, sbtype = KStyle .WindowsStyleScrollBar)
returns
a KStyle instance
Argument
Type
Default
flags
KStyle.KStyleFlags
KStyle .Default
sbtype
KStyle.KStyleScrollBarType
KStyle .WindowsStyleScrollBar
KStyle
(a0)
returns
a KStyle instance
Argument
Type
Default
a0
KStyle
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 )
drawKStylePrimitive
(kpe, p, widget, r, cg, flags = Style_Default, a0 = TQStyleOption (TQStyleOption .Default ))
returns
nothing
Argument
Type
Default
kpe
KStyle.KStylePrimitive
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
KStyle.KStylePixelMetric
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
KStyle.KStyleScrollBarType
styleFlags
()
returns
(KStyle.KStyleFlags)
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