- self._categoryView.set_cursor(self._find_result[self._find_count][2], self._categoryColumn, False)
- self._unitsView.set_cursor(self._find_result[self._find_count][3], self._unitNameColumn, True)
+ self._categoryView.set_cursor(
+ self._find_result[self._find_count][2], self._categoryColumn, False
+ )
+
+ self._unitsView.set_cursor(
+ self._find_result[self._find_count][3], self._unitNameColumn, True
+ )
+
+ def _on_findEntry_changed(self, *args):
+ """
+ Clear out find results since the user wants to look for something new
+ """
+ try:
+ self._clear_find()
+ except Exception:
+ _moduleLogger.exception()
+
+ def _on_shortlist_changed(self, *args):
+ try:
+ raise NotImplementedError("%s" % self._shortlistcheck.get_active())
+ except Exception:
+ _moduleLogger.exception()
+
+ def _on_edit_shortlist(self, *args):
+ try:
+ raise NotImplementedError("%s" % self._toggleShortList.get_active())
+ except Exception:
+ _moduleLogger.exception()
+
+ def _on_user_clear_selections(self, *args):
+ try:
+ selectionsDatPath = "/".join((constants._data_path_, "selections.dat"))
+ os.remove(selectionsDatPath)
+ self._selected_units = {}
+ except Exception:
+ _moduleLogger.exception()