回复: [wxPython-users] ListCtrl
光华 陶
artman328 at yahoo.com.cn
Tue Nov 21 21:32:20 PST 2006
tell the listctrl which cloumns are numeric, say num_cols=[1,5,6]
then:
....
if col in num_cols:
value1 = float(value1)
value2 = float(value2)
....
I do sort numeric cloumns this way.
James Bigler <bigler at cs.utah.edu> 写道:
I'm going through chapter 13 from the wP in Action book and I'm wondering if
there is a way to get the sorting not by string but by some other method (such
as numerically). I'm looking at the code from list_report_colsort.py.
Thanks,
James
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
Artman Tao
---------------------------------
雅虎免费邮箱-3.5G容量,20M附件
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20061122/0d10827a/attachment.htm
More information about the wxpython-users
mailing list