Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def UnBlock(self):
- selItem=self.fileListBox.GetSelectedItem()
- select = selItem.GetText()
- self.ReplaceFileString(select+"\n", "", "whisperblock.txt")
- self.__ClearFileList()
- handle = app.OpenTextFile("whisperblock.txt")
- count = app.GetTextFileLineCount(handle)
- for i in xrange(count):
- line = app.GetTextFileLine(handle, i)
- tokens = line.split("\n")
- self.fileListBox.AppendItem(Item(tokens[0]))
- app.CloseTextFile(handle)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement