- def GUIcreate(self, parent):
- self.instance = eListbox(parent)
- self.instance.setContent(self.l)
- self.setMode(self.mode)
+ def moveToChar(self, char):
+ # TODO fill with life
+ print "Next char: "
+ index = self.l.getNextBeginningWithChar(char)
+ indexup = self.l.getNextBeginningWithChar(upper(char))
+ if indexup != 0:
+ if (index > indexup or index == 0):
+ index = indexup
+
+ self.instance.moveSelectionTo(index)
+ print "Moving to character " + str(char)
+
+ def moveToNextMarker(self):
+ idx = self.l.getNextMarkerPos()
+ self.instance.moveSelectionTo(idx)
+
+ def moveToPrevMarker(self):
+ idx = self.l.getPrevMarkerPos()
+ self.instance.moveSelectionTo(idx)
+
+ def moveToIndex(self, index):
+ self.instance.moveSelectionTo(index)
+
+ def getCurrentIndex(self):
+ return self.instance.getCurrentIndex()
+
+ GUI_WIDGET = eListbox