[PyQt] How is thousands separator displayed in QDoubleSpinBox?
Arnold Krille
arnold at arnoldarts.de
Mon Jul 5 18:29:05 BST 2010
On Monday 05 July 2010 15:15:32 bluekyu wrote:
> Hello, I want to display thousands separator in QDoubleSpinBox.
> (For example, I may click upward button at 999 and it dispaly 1,000)
> I tried to find this in google and doc.
> But I don't know how to do this. Can I do this?
> My environment is python3.1, pyqt 4.7.3, kubuntu 10.04 and
> QWidget.locale().groupSeparator() is ','
I haven't checked this explicitly but I believe the thousand-separator as well
as the decimal-separator depend heavily on the locale. That is on a German
system it will use ' ' as thousand separator and ',' as decimal-separator in
contrast to English systems where its ',' and '.'...
Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100705/4edb58ef/attachment.pgp>
More information about the PyQt
mailing list