示例#1
0
 def iterFiles(self, ignorer):
     """Iterate through open files, returning the sort item that will
     later be used in the call to threadedSearch
     
     """
     docs = BufferList.getBuffers()
     for buf in docs:
         if not buf.permanent:
             yield (str(buf.url), buf)
示例#2
0
 def iterFiles(self, ignorer):
     """Iterate through open files, returning the sort item that will
     later be used in the call to threadedSearch
     
     """
     docs = BufferList.getBuffers()
     for buf in docs:
         if not buf.permanent:
             yield (str(buf.url), buf)
示例#3
0
文件: notebook.py 项目: zendbit/peppy
 def closeWrapper(self, mode):
     if self.GetPageCount() > 1:
         for index in range(0, self.GetPageCount()):
             wrapper = self.GetPage(index)
             if wrapper.editwin == mode:
                 wrapper.deleteMajorMode()
                 self.RemovePage(index)
                 wrapper.Destroy()
                 break
     else:
         page = self.GetPage(0)
         page.deleteMajorMode()
         buffer = BufferList.findBufferByURL("about:blank")
         page.createMajorMode(self.frame, buffer)
         self.updateWrapper(page)
示例#4
0
 def closeWrapper(self, mode):
     if self.GetPageCount() > 1:
         for index in range(0, self.GetPageCount()):
             wrapper = self.GetPage(index)
             if wrapper.editwin == mode:
                 wrapper.deleteMajorMode()
                 self.RemovePage(index)
                 wrapper.Destroy()
                 break
     else:
         page = self.GetPage(0)
         page.deleteMajorMode()
         buffer = BufferList.findBufferByURL("about:blank")
         page.createMajorMode(self.frame, buffer)
         self.updateWrapper(page)