def on_accept(dialog): Marker.save_as_csv(dialog.filename, self.get_selected_objects())
def on_accept(dialog): with self._multi_operation_context(): for marker in Marker.get_from_csv(dialog.filename, self.model): self.model.markers.append(marker)
def on_accept(dialog): filename = self.extract_filename(dialog) Marker.save_as_csv(filename, self.get_selected_objects())
def create_new_object_proxy(self): return Marker(label="New Marker", parent=self.model)