2007年07月22日 星期日 12:33
ÏÖÔÚÏëÔÚGrid¿Ø¼þµÄÒ»ÁÐÀïÃæÌí¼ÓÒ»×鸴ѡ¿ò£¬ÇëÎʸÃÔõôд´úÂëÄØ -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070722/4d579176/attachment.html
2007年07月22日 星期日 20:52
wxPython DemoÀïÃæÓС£ ¿ÉÒÔÓÃÒ»×éwx.grid.GridCellBoolEditorÀ´ÊµÏÖ¸´Ñ¡¿ò¡£ ժѡµÄ²¿·Ö´úÂëÈçÏ£º import wx import wx.grid as gridlib comboDemoData = [ ('GridCellNumberRenderer\nGridCellNumberEditor', '20792', gridlib.GridCellNumberRenderer, gridlib.GridCellNumberEditor), ('GridCellBoolRenderer\nGridCellBoolEditor', '1', gridlib.GridCellBoolRenderer, gridlib.GridCellBoolEditor), ] for label, value, renClass, edClass in comboDemoData: self.SetCellValue(row, renCol, label) self.SetCellValue(row, renCol+1, value) editor = edClass() renderer = renClass() self.SetCellEditor(row, renCol+1, editor) self.SetCellRenderer(row, renCol+1, renderer) row = row + 2 ÔÚ07-7-22£¬Lee DYER <lee.dyer在gmail.com> дµÀ£º > > ÏÖÔÚÏëÔÚGrid¿Ø¼þµÄÒ»ÁÐÀïÃæÌí¼ÓÒ»×鸴ѡ¿ò£¬ÇëÎʸÃÔõôд´úÂëÄØ > > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070722/f7643352/attachment.htm
Zeuux © 2025
京ICP备05028076号