self.__wrap_around = wrap_around
if self.instance is not None:
self.instance.setWrapAround(self.__wrap_around)
-
+
wrap_around = property(lambda self: self.__wrap_around, setWrapAround)
def selectionChanged(self):
if self.instance is None:
return None
return self.instance.getCurrentIndex()
-
+
def moveToIndex(self, index):
if self.instance is None:
return
self.instance.moveSelectionTo(index)
index = property(getIndex, moveToIndex)
-
+
def move(self, direction):
if self.instance is not None:
self.instance.moveSelection(direction)