[PyKDE] QLCD- Alpha widget ?

Greg Fortune lists at gregfortune.com
Fri Mar 26 08:23:01 GMT 2004


The QLCDNumber do some alpha characters as is

Drop this code into a project...

w = QLCDNumber(self, "lcdAlpha")
w.display("Cool")


Checking the Qt docs turns up:

void QLCDNumber::display ( const QString & s ) [slot] 

Displays the number represented by the string s. 

This version of the function disregards mode() and smallDecimalPoint(). 


These digits and other symbols can be shown: 0/O, 1, 2, 3, 4, 5/S, 6, 7, 8, 
9/g, minus, decimal point, A, B, C, D, E, F, h, H, L, o, P, r, u, U, Y, 
colon, degree sign (which is specified as single quote in the string) and 
space. QLCDNumber substitutes spaces for illegal characters. 


Examples: rangecontrols/rangecontrols.cpp, t12/lcdrange.cpp, t13/gamebrd.cpp, 
t5/main.cpp, t6/main.cpp, t7/lcdrange.cpp, and xform/xform.cpp. 



Greg Fortune
Fortune Solutions

On Thursday 25 March 2004 10:40 pm, Tony Cappellini wrote:
> Since QT/pyQt have the QLCDNumber widget, I can't help but wonder if anyone
> has created
> an Alphabetic LCD widget ?
>
>
> _______________________________________________
> PyKDE mailing list    PyKDE at mats.imk.fraunhofer.de
> http://mats.imk.fraunhofer.de/mailman/listinfo/pykde




More information about the PyQt mailing list