;ò üÊßCc@s›dkZdkZdeifd„ƒYZd„ZdZedjoPdkZdkZdk Z e i dei i ei dƒgei dƒndS( NsTestVirtualListcBsPtZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z RS( NcCsttii||ddtitiBtiBtiBƒ||_ ti ddƒ|_ |i i t iƒƒ|_|i|i tiƒ|iddƒ|iddƒ|idd ƒ|idd ƒ|idd ƒ|idd ƒ|id ƒtiƒ|_|iid ƒtiƒ|_|iid ƒ|iti|iƒ|iti|iƒ|iti|iƒdS(NiÿÿÿÿsstyleiisFirstisSecondisThirdi¯i@Bsyellows light blue( swxsListCtrls__init__sselfsparents LC_REPORTs LC_VIRTUALs LC_HRULESs LC_VRULESslogs ImageListsilsAddsimagessgetSmilesBitmapsidx1s SetImageListsIMAGE_LIST_SMALLs InsertColumnsSetColumnWidths SetItemCounts ListItemAttrsattr1sSetBackgroundColoursattr2sBindsEVT_LIST_ITEM_SELECTEDsOnItemSelectedsEVT_LIST_ITEM_ACTIVATEDsOnItemActivatedsEVT_LIST_ITEM_DESELECTEDsOnItemDeselected(sselfsparentslog((sp/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ListCtrl_virtual.pys__init__s("  cCs]|i|_|iid|i|i|iƒ|i|idƒ|i|idƒfƒdS(Ns'OnItemSelected: "%s", "%s", "%s", "%s" ii(sevents m_itemIndexsselfs currentItemslogs WriteTexts GetItemTexts getColumnText(sselfsevent((sp/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ListCtrl_virtual.pysOnItemSelected)s cCs<|i|_|iid|i|iƒ|iƒfƒdS(Ns OnItemActivated: %s TopItem: %s (sevents m_itemIndexsselfs currentItemslogs WriteTexts GetItemTexts GetTopItem(sselfsevent((sp/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ListCtrl_virtual.pysOnItemActivated1s cCs |i||ƒ}|iƒSdS(N(sselfsGetItemsindexscolsitemsGetText(sselfsindexscolsitem((sp/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ListCtrl_virtual.pys getColumnText6scCs|iid|iƒdS(NsOnItemDeselected: %s(sselfslogs WriteTextsevts m_itemIndex(sselfsevt((sp/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ListCtrl_virtual.pysOnItemDeselected:scCsd||fSdS(NsItem %d, column %d(sitemscol(sselfsitemscol((sp/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ListCtrl_virtual.pys OnGetItemTextDscCs$|ddjo |iSndSdS(Niiiÿÿÿÿ(sitemsselfsidx1(sselfsitem((sp/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ListCtrl_virtual.pysOnGetItemImageGs cCs@|ddjo |iSn!|ddjo |iSntSdS(Niii(sitemsselfsattr1sattr2sNone(sselfsitem((sp/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ListCtrl_virtual.pys OnGetItemAttrMs   ( s__name__s __module__s__init__sOnItemSelectedsOnItemActivateds getColumnTextsOnItemDeselecteds OnGetItemTextsOnGetItemImages OnGetItemAttr(((sp/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ListCtrl_virtual.pysTestVirtualLists !     cCst||ƒ}|SdS(N(sTestVirtualListsnbslogswin(sframesnbslogswin((sp/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ListCtrl_virtual.pysrunTestXssThis example demonstrates the ListCtrl's Virtual List features. A Virtual list can contain any number of cells, but data is not loaded into the control itself. It is loaded on demand via virtual methods OnGetItemText(), OnGetItemImage(), and OnGetItemAttr(). This greatly reduces the amount of memory required without limiting what can be done with the list control itself. s__main__sii(swxsimagessListCtrlsTestVirtualListsrunTestsoverviews__name__ssyssossrunsmainspathsbasenamesargv(ssyssrunsoverviewsrunTestsimagessTestVirtualListsosswx((sp/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ListCtrl_virtual.pys?s  Q