- pos = pos.move(-pos.width * 1.5, (selected.size[1] - pos.height) / 2)
- surface.blit(self.selector, pos)
+ left_pos = pos.move(-pos.width * 1.5,
+ (selected.size[1] - pos.height) / 2)
+ right_pos = pos.move(selected.size[0] + pos.width * 0.5,
+ (selected.size[1] - pos.height) / 2)
+ surface.blit(self.left_selector, left_pos)
+ surface.blit(self.right_selector, right_pos)
+
+ def change_pos(self, change):
+ self.position = (self.position + change) % len(self.widgets)
+ while not self.widgets[self.position].is_selectable():
+ self.position = (self.position + change) % len(self.widgets)
+ return self.widgets[self.position]