# Path: pyDEA/core/utils/dea_utils.py
# LOG_FILE = 'logging_config.ini'
# PACKAGE = 'pyDEA'
# FILE_TYPES = [('Excel (xlsx)', '*.xlsx'),
#               ('Text CSV', '*.csv')]
# SOLUTION_XLSX_FILE = [('Excel (xlsx)', '*.xlsx')]
# TEXT_FOR_PANEL = 'File: '
# TEXT_FOR_FILE_LBL = 'Data from file: '
# ZERO_TOLERANCE = 1e-10
# VALID_COEFF = 1
# WARNING_COEFF = 0
# NOT_VALID_COEFF = -1
# EMPTY_COEFF = -2
# CELL_DESTROY = -3
# CHANGE_CATEGORY_NAME = -4
# INPUT_OBSERVER = 1
# OUTPUT_OBSERVER = 2
# XPAD_VALUE = 10
# YPAD_VALUE = 5
# TMP_FOLDER = 'tmp'
# class ObserverStringVar(StringVar):
#     def __init__(self, *args, **kw):
# def get_logger():
# def change_to_unique_name_if_needed(file_name):
# def clean_up_pickled_files():
# def format_data(data):
# def auto_name_if_needed(params, output_format, new_output_dir=''):
# def calculate_nb_pages(nb_data_rows, nb_table_rows):
# def calculate_start_row_index(curr_page, nb_table_rows):
# def validate_category_name(name, category_index, current_categories):
# def on_canvas_resize(canvas):
# def center_window(widget, width=None, height=None):
# def create_params_str(params):
# def is_valid_coeff(coeff):
# def is_efficient(efficiency_score, lambda_variable):
# def check_input_and_output_categories(input_data):
# def check_categories(categories_to_ckeck, categories, message=''):
# def parse_price_ratio(elem, value, constraint, categories, bounds):
# def parse_constraint(constraint, split_str, new_bounds_lb, new_bounds_ub,
#                      categories):
# def create_bounds(constraints, categories):
# def contraint_is_price_ratio_type(bounds_key):
# def get_price_ratio_categories(val):
# def find_category_name_in_restrictions(val):


from tkinter import Canvas
from pyDEA.core.utils.dea_utils import bg_color
''' This module contains StyledCanvas class.
'''




class StyledCanvas(Canvas):
    ''' Implements Canvas object with a custom background colour.

        Args:
            parent (Tk object): parent of this widget.
    '''
    def __init__(self, parent, *args, **kw):
        super().__init__(parent, *args, **kw)

# Path: pyDEA/core/utils/dea_utils.py
# LOG_FILE = 'logging_config.ini'
# PACKAGE = 'pyDEA'
# FILE_TYPES = [('Excel (xlsx)', '*.xlsx'),
#               ('Text CSV', '*.csv')]
# SOLUTION_XLSX_FILE = [('Excel (xlsx)', '*.xlsx')]
# TEXT_FOR_PANEL = 'File: '
# TEXT_FOR_FILE_LBL = 'Data from file: '
# ZERO_TOLERANCE = 1e-10
# VALID_COEFF = 1
# WARNING_COEFF = 0
# NOT_VALID_COEFF = -1
# EMPTY_COEFF = -2
# CELL_DESTROY = -3
# CHANGE_CATEGORY_NAME = -4
# INPUT_OBSERVER = 1
# OUTPUT_OBSERVER = 2
# XPAD_VALUE = 10
# YPAD_VALUE = 5
# TMP_FOLDER = 'tmp'
# class ObserverStringVar(StringVar):
#     def __init__(self, *args, **kw):
# def get_logger():
# def change_to_unique_name_if_needed(file_name):
# def clean_up_pickled_files():
# def format_data(data):
# def auto_name_if_needed(params, output_format, new_output_dir=''):
# def calculate_nb_pages(nb_data_rows, nb_table_rows):
# def calculate_start_row_index(curr_page, nb_table_rows):
# def validate_category_name(name, category_index, current_categories):
# def on_canvas_resize(canvas):
# def center_window(widget, width=None, height=None):
# def create_params_str(params):
# def is_valid_coeff(coeff):
# def is_efficient(efficiency_score, lambda_variable):
# def check_input_and_output_categories(input_data):
# def check_categories(categories_to_ckeck, categories, message=''):
# def parse_price_ratio(elem, value, constraint, categories, bounds):
# def parse_constraint(constraint, split_str, new_bounds_lb, new_bounds_ub,
#                      categories):
# def create_bounds(constraints, categories):
# def contraint_is_price_ratio_type(bounds_key):
# def get_price_ratio_categories(val):
# def find_category_name_in_restrictions(val):


# Path: pyDEA/core/gui_modules/custom_canvas_gui.py
from tkinter import Canvas
from pyDEA.core.utils.dea_utils import bg_color

''' This module contains StyledCanvas class.
'''




class StyledCanvas(Canvas):
    ''' Implements Canvas object with a custom background colour.

        Args:
            parent (Tk object): parent of this widget.
    '''
    def __init__(self, parent, *args, **kw):
        super().__init__(parent, *args, **kw)

        self.configure(background=bg_color)