KGradientSelector Class Reference
from PyKDE4.kdeui import *
Inherits: KSelector → QAbstractSlider → QWidget → QObject
Detailed Description
Methods |
| __init__ (self, QWidget parent=0) |
| __init__ (self, Qt.Orientation o, QWidget parent=0) |
| __init__ (self, KGradientSelector a0) |
| drawContents (self, QPainter a0) |
QColor | firstColor (self) |
QString | firstText (self) |
QSize | minimumSize (self) |
QColor | secondColor (self) |
QString | secondText (self) |
| setColors (self, QColor col1, QColor col2) |
| setFirstColor (self, QColor col) |
| setFirstText (self, QString t) |
| setSecondColor (self, QColor col) |
| setSecondText (self, QString t) |
| setText (self, QString t1, QString t2) |
Method Documentation
__init__ |
( |
self, |
|
|
|
QWidget |
parent=0 |
|
) |
|
|
|
Constructs a horizontal color selector which
contains a gradient between white and black.
Constructs a colors selector with orientation o which
contains a gradient between white and black.
QSize minimumSize |
( |
|
self ) |
|
Sets the two colors which span the gradient.
setFirstColor |
( |
self, |
|
|
|
QColor |
col |
|
) |
|
|
|
Set each color on its own.
Set each description on its own
setSecondColor |
( |
self, |
|
|
|
QColor |
col |
|
) |
|
|
|