Beispiel #1
0
#   output file
#   output dir
config_option = [0, 2, 1, 0, 0, 1]

GUI_util.set_window(GUI_size, GUI_label, config_filename, config_option)

# GUI CHANGES add following lines to every special GUI
# +3 is the number of lines starting at 1 of IO widgets
y_multiplier_integer = GUI_util.y_multiplier_integer + 2
window = GUI_util.window
config_input_output_options = GUI_util.config_input_output_options
config_filename = GUI_util.config_filename
inputFilename = GUI_util.inputFilename
input_main_dir_path = GUI_util.input_main_dir_path

GUI_util.GUI_top(config_input_output_options, config_filename)

# if GUI_util.softwareDir.get()=='':
#     GUI_util.select_softwareDir_button.config(state='disabled')

mean_var = tk.IntVar()
median_var = tk.IntVar()
SA_algorithm_var = tk.StringVar()
memory_var = tk.IntVar()
memory_var_lb = tk.Label(window, text='Memory ')

sentence_index_var = tk.IntVar()
shape_of_stories_var = tk.IntVar()

# doNotCreateIntermediateFiles_var = tk.IntVar() #when an entire directory is processed; could lead to an enourmus number of output files
# Written by Yuhang Feng November 2019
# Edited by Roberto Franzosi
import sys
import GUI_util
import IO_libraries_util
if IO_libraries_util.install_all_packages(GUI_util.window, "Excel_charts.py",
                                          ['os', 'tkinter']) == False:
    sys.exit(0)
import tkinter.messagebox as mb
import tkinter as tk
import GUI_util
import GUI_IO_util
import IO_files_util
import IO_user_interface_util
import Excel_util
import IO_csv_util
# RUN section ______________________________________________________________________________________________________________________________________________________

def run(input_file_name, output_dir, openOutputFiles, selected_series,
        column_xAxis_label_var, column_yAxis_label_var, count_var,
        column_yAxis_field_list, second_y_var, second_y_var_list,
        second_yAxis_label_var, chart_type, chart_type_list, chart_title,
        hover_var_list, hover_info_column_list):
    filesToOpen = []  # Store all files that are to be opened once finished
    if len(chart_type) == 0:
        mb.showwarning(
            title='Chart type error',
            message=
            "No chart type was specified (e.g., line, bubble). The chart cannot be created. Please, select a chart type and try again!"
        )