def _roll_image(self):
    breakOut = False
    while (True and (not breakOut)):
        if self.fileQueue:
            self.currImage = self.fileQueue.popleft()
            if (not (self.currImage in self.doneSet)):
                print(('Index in queue ' + str(self.queueIndex)))
                try:
                    self.imageCanvas.roll_image(self.currImage)
                    breakOut = True
                except IOError:
                    print((('Ignore: ' + self.currImage) + ' cannot be opened as an image'))
                    breakOut = False
            self.queueIndex += 1
        else:
            breakOut = True
            self.tkroot.quit()
    self.tkroot.update()
def _roll_image(self):
    breakOut = False
    while (True and (not breakOut)):
        if self.fileQueue:
            self.currImage = self.fileQueue.popleft()
            if (not (self.currImage in self.doneSet)):
                print(('Index in queue ' + str(self.queueIndex)))
                try:
                    self.imageCanvas.roll_image(self.currImage)
                    breakOut = True
                except IOError:
                    print((('Ignore: ' + self.currImage) + ' cannot be opened as an image'))
                    breakOut = False
            self.queueIndex += 1
        else:
            breakOut = True
            self.tkroot.quit()
    self.tkroot.update()