Example #1
0
    def InitList (self, pList, pVfs = None):
        #print 'init List'
        #create new Vfs stack for this list control object (if not already done)
        if self.m_mapStackIdx.get (pList, 0) == 0:
            #stack does not exist for this list, create new one
            #tVfsStack stack;
            stack=[]
            stack.append (Vfs())
            self.m_lstStacks.append (stack)
            #typedef std::vector<Vfs *> tVfsStack;

            #remember stack index
            self.m_mapStackIdx[pList] = len (self.m_lstStacks) - 1

        if (None == pVfs):
          pVfs = Vfs_Local()

        self.VfsStackPush(pList, pVfs)

        # TOFIX: remove this
        #ifdef __WXMSW__
        pList.SetDirectory ('C:\\')