Example #1
0
def clear(e):
    visualize_bySentenceIndex_var.set(0)
    visualize_sentence_structure_var.set(0)
    extract_sentences_var.set(0)
    visualize_bySentenceIndex_options_var.set('')
    search_words_var.set('')
    GUI_util.clear("Escape")
Example #2
0
def clear(e):
    data_file_handling_tools_var.set('')
    pre_processing_tools_var.set('')
    statistical_tools_var.set('')
    visualization_tools_var.set('')
    corpus_tools_var.set('')
    corpus_document_tools_var.set('')
    sentence_tools_var.set('')
    GUI_util.clear("Escape")
def clear(e):
    corpus_stats_var.set(0)
    corpus_options_menu_var.set('*')
    all_csv_stats_var.set(0)
    csv_field_stats_var.set(0)
    n_grams_menu_var.set('Word')
    reset_n_grams_list()
    reset_csv_list()
    GUI_util.clear("Escape")
Example #4
0
def clear(e):
    encoding_var.set('utf-8')
    location_menu_var.set('')
    GIS_package_var.set('')
    geocoder_var.set('Nominatim')
    Google_API_Google_geocode_var.set('')
    Google_API_geocode_lb.place_forget()  # invisible
    Google_API_geocode.place_forget()  # invisible
    save_APIkey_button_Google_geocode.place_forget()  # invisible
    GUI_util.clear("Escape")
Example #5
0
def clear(e):
    n_grams_list.clear()
    n_grams_menu_var.set('Word')
    n_grams_options_menu_var.set('')
    search_words_var.set('')
    viewer_options_menu_var.set('')
    temporal_aggregation.set('year')
    date_format.set('mm-dd-yyyy')
    date_separator_var.set('_')
    date_position_var.set(2)
    GUI_util.clear("Escape")
Example #6
0
 def update(self, new_gameStateData):
     """
     Update the display with the new data supplied.
     """
     self.data = new_gameStateData
     
     # update board
     self.board = self.STATIC_BOARD.copy()
     self._drawPlayers()
     self.screen.blit(self.board, gu.BOARD_RECT)
     # update settings panel
     self.showMessage(gu.getSettingsPanelMessage(self.data), self.settingsPanel, 
                      bg_color = gu.SETTINGS_PANEL_COLOR, 
                      rect = gu.SETTINGS_PANEL_RECT)
     # update Mr.X moves panel
     self.showMessage(gu.getMovesPanelMessage(self.data), self.movesPanel, 
                      bg_color = gu.MOVES_PANEL_COLOR, 
                      rect = gu.MOVES_PANEL_RECT)
     pygame.display.update()
def clear(e):
    CoNLL_table_analysis_checkbox.configure(state='normal')
    complexity_readability_analysis_checkbox.configure(state='normal')
    vocabulary_analysis_checkbox.configure(state='normal')
    ngrams_analysis_checkbox.configure(state='normal')

    CoNLL_table_analysis_var.set(0)
    complexity_readability_analysis_var.set(0)
    vocabulary_analysis_var.set(0)
    ngrams_analysis_var.set(0)

    CoNLL_table_analysis_menu_var.set('')
    complexity_readability_analysis_menu_var.set('')
    vocabulary_analysis_menu_var.set('')
    ngrams_analysis_menu_var.set('')

    CoNLL_table_analysis_menu.configure(state='disabled')
    complexity_readability_analysis_menu.configure(state='disabled')
    vocabulary_analysis_menu.configure(state='disabled')
    ngrams_analysis_menu.configure(state='disabled')

    GUI_util.clear("Escape")
Example #8
0
 def _drawGameBoardAndInfo(self):
     gu.drawEdges(self.board)
     gu.drawNodes(self.board)
     gu.drawNumbers(self.board)
     
     self.showMessage("Starting a new Game...", self.infoPanel, 
                      bg_color = gu.INFO_PANEL_COLOR, 
                      rect = gu.INFO_RECT)
     self.showMessage(gu.getSettingsPanelMessage(self.data), self.settingsPanel, 
                      bg_color = gu.SETTINGS_PANEL_COLOR, 
                      rect = gu.SETTINGS_PANEL_RECT)
     self.showMessage("Mr.X info", self.movesPanel, 
                      bg_color = gu.MOVES_PANEL_COLOR, 
                      rect = gu.MOVES_PANEL_RECT)
def clear(e):
	similarityIndex_Intruder_var.set(0.2)
	similarityIndex_Plagiarist_var.set(0.2)
	GUI_util.clear("Escape")
Example #10
0
def clear(e):
	location_var.set('')
	location_var2.set('')
	GUI_util.clear("Escape")
Example #11
0
import os
import tkinter as tk
from itertools import cycle
# https://pillow.readthedocs.io/en/3.0.x/handbook/tutorial.html
# https://pillow.readthedocs.io/en/stable/installation.html
# Pillow and PIL cannot co-exist in the same environment. Before installing Pillow, please uninstall PIL.
# Pillow >= 1.0 no longer supports “import Image”. Please use “from PIL import Image” instead.
from PIL import Image, ImageTk
from subprocess import call

import GUI_IO_util

GUI_size = '1000x600'

GUI_util.set_window(GUI_size, '', '', '')

window = GUI_util.window
'''
    OPTIONS FOR GRID https://www.tutorialspoint.com/python/tk_grid.htm
    This view uses Grid for layout. There are six columns in total. 
    Use widget.grid(row, column, rowspan=1, columnspan=1, padx=0, pady=0) for view layout
    where:
        row          The horizontal (x) position of the widget
        column       The vertical (y) position of the widget
        columnspan   The width of the widget, where columnspan=1 takes up 1/6 of the window width
                     and columnspan=6 takes up the whole window width
        rowspan      The height of the widget
        padx/pady    The horizontal/vertical padding around each widget
        sticky − What to do if the cell is larger than widget. 
                By default, with sticky='', widget is centered in its cell. 
def clear(e):
    clear_NER_list()
    GUI_util.clear("Escape")
Example #13
0
def clear(e):
    wordclouds_var.set('')
    selectedImage_var.set('')
    color_style_var.set('')
    csvField_color_list.clear()
    GUI_util.clear("Escape")
Example #14
0
def clear(e):
    GUI_util.clear("Escape")
    year_state_var.set('')
    firstName_entry_var.set('')
def clear(e):
    CoreNLP_annotators_var.set(0)
    CoreNLP_annotators_menu_var.set('')
    manual_Coref_checkbox.place_forget()  # invisible
    GUI_util.clear("Escape")
Example #16
0
def clear(e):
    GUI_util.clear("Escape")
Example #17
0
# The 6 values of config_option refer to:
#   software directory
#   input file
# 1 for CoNLL file
# 2 for TXT file
# 3 for csv file
# 4 for any type of file
# 5 for txt or html
# 6 for txt or csv
#   input dir
#   input secondary dir
#   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')
Example #18
0
# GUI section ______________________________________________________________________________________________________________________________________________________

GUI_size = '1000x750'
GUI_label = 'GUI for CoNLL Table Search'
config_filename = 'conll-table-search-config.txt'  # filename used in Stanford_CoreNLP_main
# The 6 values of config_option refer to:
#   software directory
#   input file 1 for CoNLL file 2 for TXT file 3 for csv file 4 for any type of file
#   input dir
#   input secondary dir
#   output file
#   output dir
config_option = [0, 1, 0, 0, 0, 1]

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

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

GUI_util.GUI_top(config_input_output_options, config_filename)

searchedCoNLLField = tk.StringVar()
searched_term = tk.StringVar()
searched_type = tk.StringVar()
filters: List[CoNLLFilter] = []
Example #19
0
 def _drawPlayers(self):
     if Settings.isDebug() or self.data.getNumMoves() in Settings.getNotHiddenMovesNumbers():
         gu.drawAgent(self.board, self.data.getAgent(0))
     for i in range(self.data.numberOfCops()):
         gu.drawAgent(self.board, self.data.getAgent(i+1))
Example #20
0
# The 6 values of config_option refer to:
#	software directory
#   input file
# 1 for CoNLL file
# 2 for TXT file
# 3 for csv file
# 4 for any type of file
# 5 for txt or html
# 6 for txt or csv
#	input dir
#	input secondary dir
#	output file
#	output dir
config_option = [0, 0, 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
y_multiplier_integer = GUI_util.y_multiplier_integer + 1
window = GUI_util.window
config_input_output_options = GUI_util.config_input_output_options
config_filename = GUI_util.config_filename
inputFilename = GUI_util.inputFilename

GUI_util.GUI_top(config_input_output_options, config_filename)

selectedCsvFile_var = tk.StringVar()
find_var = tk.IntVar()
source_file_type_menu_var = tk.StringVar()
target_file_type_menu_var = tk.StringVar()
matching_var = tk.IntVar()
Example #21
0
# 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!"
        )
def clear(e):
    corpus_statistics_var.set(1)
    corpus_options_menu_var.set('*')
    what_else_var.set(1)
    what_else_menu_var.set('*')
    GUI_util.clear("Escape")
Example #23
0
def clear(e):
    keyWord_var.set('')
    keyWord_entry_var.set('')
    dict_WordNet_filename_var.set('')
    # activate_allOptions(noun_verb_menu_var.get())
    GUI_util.clear("Escape")
Example #24
0
def clear(e):
    searched_term.set('e.g.: father')
    searchedCoNLLField.set('*')
    GUI_util.clear("Escape")
Example #25
0
import config_util

GUI_size='700x550'
GUI_label='License agreement for suite of NLP tools'
config_filename='license-config.txt'

# The 6 values of config_option refer to: 
#   software directory
#   input file 1 for CoNLL file 2 for TXT file 3 for csv file 4 for any type of file
#   input dir
#   input secondary dir
#   output file
#   output dir
config_option=[0,0,0,0,0,0]

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

text_area = tk.Text()
# text_area.configure(height=440)
text_area.pack()

if (os.path.isfile(os.path.join(GUI_IO_util.libPath, 'LICENSE-NLP-Suite-1.0.txt'))):
	f= open(os.path.join(GUI_IO_util.libPath, "LICENSE-NLP-Suite-1.0.txt"))
else:
	if (os.path.isfile(os.path.join(GUI_IO_util.libPath, 'LICENSE-NLP-1.0.txt'))):
		f = open(os.path.join(GUI_IO_util.libPath, "LICENSE-NLP-1.0.txt"))
		# rename the file to the new standard
		os.rename('LICENSE-NLP-1.0.txt', 'LICENSE-NLP-Suite-1.0.txt')
	else:
		mb.showwarning(title='Fatal error', message="The licence agreement file 'LICENSE-NLP-Suite-1.0.txt' could not be found in the 'lib' subdirectory of your main NLP Suite directory\n" + GUI_IO_util.scriptPath + "\n\nPlease, make sure to copy this file in the 'lib' subdirectory.\n\nThe NLP Suite will now exit.")
		sys.exit()
Example #26
0
def clear(e):
    SA_algorithm_var.set('')
    memory_var_lb.place_forget()  # invisible
    memory_var.place_forget()  # invisible
    GUI_util.clear("Escape")
Example #27
0
def clear(e):
    check_tools_var.set('')
    convert_tools_var.set('')
    clean_tools_var.set('')
    GUI_util.clear("Escape")