def show_poincare_settings_handler(self): if not hasattr(self, '__poincare_settings__'): self.__poincare_settings__ = PoincarePlotSettingsDockWidget( self, data_accessor=self.data_accessor, output_file_listener=self.__output_file_listener__) self.__poincare_settings__.show()
def show_poincare_settings_handler(self): """ handler call by PoincareToolBarWidget toolbar """ if self.__selected_files_specifications_handler__: selected_files_specifications = \ self.__selected_files_specifications_handler__() if len(selected_files_specifications) > 0: for file_specification in selected_files_specifications: self.addFileSpecification(file_specification) if len(self.__file_specifications__) == 0: InformationWindow(message='No data sources selected !') return if not hasattr(self, '__poincare_settings__'): #to convert data accessor objects based on file specification #objects to inform a user about progression special kind of #progress bar is used data_accessors_group_converter = \ FilesSpecificationsToDataAccessorsGroupConverter( self, self.__file_specifications__) data_vectors_accessor_group = \ data_accessors_group_converter.data_vectors_accessors_group self.__poincare_settings__ = PoincarePlotSettingsDockWidget( self, data_vectors_accessor_group=data_vectors_accessor_group, output_file_listener=self.__output_file_listener__, #save outcomes button in PoincarePlotSettingsDockWidget #have to be in fixed check state save_outcomes_fixed_state=True) self.__poincare_settings__.show() if not hasattr(self, '__poincare_datasources_table__'): self.__poincare_datasources_table__ = \ PoincarePlotDatasourcesTableWidget(self.__central_widget__, data_accessors=data_vectors_accessor_group.data_vectors_accessors) # @IgnorePep8 self.__poincare_datasources_table__.show()