PyKDE - Python Bindings for KDE
class KDualColorButton
Table of contents
Modules
tdeui Classes
All Classes
Module
tdeui
Class
KDualColorButton
Inherits
TQWidget
enums
DualColor
= {Foreground, Background }
methods
KDualColorButton
(parent = 0, name = 0, dialogParent = 0)
returns
a KDualColorButton instance
Argument
Type
Default
parent
TQWidget
0
name
char
0
dialogParent
TQWidget
0
KDualColorButton
(fgColor, bgColor, parent = 0, name = 0, dialogParent = 0)
returns
a KDualColorButton instance
Argument
Type
Default
fgColor
TQColor
bgColor
TQColor
parent
TQWidget
0
name
char
0
dialogParent
TQWidget
0
background
()
returns
(TQColor)
bgChanged
(c)
returns
nothing
Argument
Type
Default
c
TQColor
current
()
returns
(KDualColorButton.DualColor)
currentChanged
(s)
returns
nothing
Argument
Type
Default
s
KDualColorButton.DualColor
currentColor
()
returns
(TQColor)
dragEnterEvent
(ev)
returns
nothing
Argument
Type
Default
ev
TQDragEnterEvent
dropEvent
(ev)
returns
nothing
Argument
Type
Default
ev
TQDropEvent
fgChanged
(c)
returns
nothing
Argument
Type
Default
c
TQColor
foreground
()
returns
(TQColor)
metrics
(fgRect, bgRect)
returns
nothing
Argument
Type
Default
fgRect
TQRect
bgRect
TQRect
mouseMoveEvent
(ev)
returns
nothing
Argument
Type
Default
ev
TQMouseEvent
mousePressEvent
(ev)
returns
nothing
Argument
Type
Default
ev
TQMouseEvent
mouseReleaseEvent
(ev)
returns
nothing
Argument
Type
Default
ev
TQMouseEvent
paintEvent
(ev)
returns
nothing
Argument
Type
Default
ev
TQPaintEvent
setBackground
(c)
returns
nothing
Argument
Type
Default
c
TQColor
setCurrent
(s)
returns
nothing
Argument
Type
Default
s
KDualColorButton.DualColor
setCurrentColor
(c)
returns
nothing
Argument
Type
Default
c
TQColor
setForeground
(c)
returns
nothing
Argument
Type
Default
c
TQColor
sizeHint
()
returns
(TQSize)