[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] QLCDNumber color/style
From: Doug Bell <dougb () bellz ! org>
Date: 2003-09-18 11:01:53
[Download RAW message or body]
Tony Cappellini wrote:
> Would someone point me to an example on how to change the look of a
> QLCDNumber widget ? I would like to change the color, and perhaps
> make it bold, or just easier to read. The grey is hard to see at a
> distance.
>
> Is it even possible to change the colors on this widget ?
To make it more readable, try either
QLCDNumber.setSegmentStyle(QLCDNumber.Filled) or
QLCDNumber.setSegmentStyle(QLCDNumber.Flat)
The filled option has a nice highlight, but still looks grey at small
sizes. Flat has no highlight, so it is dark at any size.
For an example, see <http://bellz.org/rpcalc/>.
I've never tried chnaging the color, but I assume you could call
QWidget.setPalette(...) like any other widget.
Doug.
_______________________________________________
PyKDE mailing list PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic