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)
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)