rk_comparison.interface.ui package

Submodules

rk_comparison.interface.ui.errorwindow module

class rk_comparison.interface.ui.errorwindow.ErrorWindow(parent=None)[source]

Bases: QDialog, Ui_ErrorWindow

Class for setting up the error window.

ok_clicked()[source]

User can close the window by clicking the button.

set_message(message)[source]

Label can display a message given in argument.

rk_comparison.interface.ui.inputwindow module

class rk_comparison.interface.ui.inputwindow.InputWindow(parent=None)[source]

Bases: QDialog, Ui_InputWindow

Class for setting up the input window.

apply_clicked()[source]

Method does a series of checks on a data provided by user. Any fail results in error message. If all checks are passed, the method saves data through controller and closes the window.

build_truth_table()[source]

Method sets up the truth table based on UI elements.

cancel_clicked()[source]

Method closes the input window without data changes.

change_type()[source]

Method to change type of input variables from string to float. Returns True if successful or False if unsuccessful. Before returning False, it also calls the raise_error() method with message as argument. Message is being build if str_to_float() fails and returns string with error message instead of number.

get_truth_table_values()[source]

Method gets the values of truth table from data through controller.

initialize_data(controller)[source]

Method reads current data through controller and displays it to user.

raise_error(message)[source]

Method shows the widget with error message.

rk_comparison.interface.ui.mainwindow module

class rk_comparison.interface.ui.mainwindow.MainWindow(parent=None)[source]

Bases: QMainWindow, Ui_MainWindow

Class for setting up the main window.

calculate_clicked()[source]

Method starts calculations and shows window with plotting options.

exit_clicked()[source]

Method closes the main window.

input_clicked()[source]

Method shows the window with input data.

rk_comparison.interface.ui.plottingwindow module

class rk_comparison.interface.ui.plottingwindow.PlottingWindow(parent=None)[source]

Bases: QDialog, Ui_PlottingWindow

Class for setting up the plotting window.

cancel_clicked()[source]

Method closes the plotting window.

initialize_controller(controller)[source]

Method initializes controller object from argument.

max_clicked()[source]

Method to display bar plot with maximal values.

mean_clicked()[source]

Method to display bar plot with mean values.

min_clicked()[source]

Method to display bar plot with minimal values.

plot_comparison_clicked()[source]

Method to display plot with comparison.

plot_results_clicked()[source]

Method to display plot with results.

save_clicked()[source]

Method opens a file and calls a method to save the data. If it fails, the error message is showed.

Module contents