[pygtk] floating point precision

Johann Schatzer schatzer.johann at gmail.com
Sun Feb 27 04:13:27 WST 2011


Using TreeStore with "float" column, e.g.
self.treestore = gtk.TreeStore(float)

the widget shows floating point numbers with a precision of 6 digits, like 34.234566 or 22.000000

How can you get a precision of only 1 or 2 digits, like 34.23 or 22.0 ?

-- 
Johann  Schatzer
PGP key: 0x4212C694




More information about the pygtk mailing list