Esempio n. 1
0
    def __init__(self, master):
        global conexionBDD
        global conexion
        self.style = ttk.Style()
        self.box_value = tk.StringVar()
        conexion.execute('SELECT anomalia FROM items')
        self.items = conexion.fetchall()
        self.lista_anomalias = []
        for item in self.items:
            self.anomalia = ''.join(item)
            self.lista_anomalias.append(self.anomalia)
        self.master = master
        self.treeview = ttk.Treeview(self.master, style="mystyle.Treeview")
        self.labelNombreAtaque = Label(
            self.master,
            text="Sistema Recomendación de Ciberseguridad",
            font=('Helvetica', 18, 'bold', 'italic'))
        self.labelNombreAtaque.grid(pady=20,
                                    padx=10,
                                    row=0,
                                    column=0,
                                    columnspan=10,
                                    sticky=S + N + E + W)

        self.labelNombreAtaque = Label(self.master,
                                       text="Nombre anomalía:",
                                       font=('Helvetica', 16, 'bold',
                                             'italic'))
        self.labelNombreAtaque.grid(row=1, column=0)
        self.combo = tkentrycomplete.AutocompleteCombobox(
            textvariable=self.box_value, width=50)
        self.test_list = self.lista_anomalias
        self.combo.set_completion_list(self.test_list)
        self.combo.grid(row=1, column=1, sticky=E + W)
        conexion.close()
        self.botonRecomendacion = Button(self.master,
                                         text="Generar recomendación",
                                         command=self.recomendacion,
                                         font=('Helvetica', 16, 'bold',
                                               'italic'))
        self.botonRecomendacion.grid(pady=20,
                                     padx=10,
                                     row=3,
                                     column=0,
                                     columnspan=3,
                                     sticky=S + N + E + W)
    def singleCountryTrends(self, keyWordList, dateFrom, dateTo,
                            popularityTimeUnit, popularityTimeModule,
                            modifier):
        #Este if condition se fija si los datos son correctos, de no serlo el metodo no hace nada mas.
        if keyWordList == [''] or popularityTimeModule == '' or keyWordList[
                0] == '' or len(keyWordList) > 4:
            #Run error method.
            return None

        #Deletes data within the common operations labelFrame
        self.deleteOperationsFrameData()

        #Country selection widget.
        countryLabel = Label(
            self.commonOperationsFrame,
            text='Select a country to find Trends or input "World": ')

        variable = StringVar(self.commonOperationsFrame)
        variable.set('World')

        countrySelection = tkentrycomplete.AutocompleteCombobox(
            self.commonOperationsFrame, textvariable=variable)
        countrySelection.set_completion_list(countryList)

        countryLabel.grid(row=0, column=0)
        countrySelection.grid(row=0, column=1)

        #Functionality Widgets.
        saveButton = Button(
            self.commonOperationsFrame,
            text='Save as csv',
            command=lambda: self.saveSingleDF(
                keyWordList, dateFrom, dateTo, popularityTimeUnit,
                int(popularityTimeModule), modifier, getTkInput(variable)))
        visualizeButton = Button(
            self.commonOperationsFrame,
            text='Visualize data',
            command=lambda: self.visualizeDF(
                keyWordList, dateFrom, dateTo, popularityTimeUnit,
                int(popularityTimeModule), modifier, getTkInput(variable)))

        saveButton.grid(row=1, column=0)
        visualizeButton.grid(row=1, column=1)
Esempio n. 3
0
labelNombreAtaque = Label(raiz,
                          text="Sistema Recomendador de Ciberseguridad",
                          font=('Verdana', 13, 'bold'))
labelNombreAtaque.grid(pady=20,
                       padx=10,
                       row=0,
                       column=0,
                       columnspan=10,
                       sticky=S + N + E + W)

labelNombreAtaque = Label(raiz,
                          text="Nombre anomalia:",
                          font=('Verdana', 12, 'bold'))
labelNombreAtaque.grid(row=1, column=0)

combo = tkentrycomplete.AutocompleteCombobox(textvariable=box_value, width=50)
test_list = lista_animaliass
combo.set_completion_list(test_list)
combo.grid(row=1, column=1, sticky=E + W)

#inputNombreAtaque = Entry(raiz, width=60)
#inputNombreAtaque.grid(row=1, column=1, sticky=E+W)
conn.close()
print(type(box_value.get()))


def realizarRecomendacion():
    recomendacion(box_value.get(), raiz)


botonRecomendacion = Button(raiz,
Esempio n. 4
0
class guiData:

    titleFrame = Frame(tab2, bg="black")
    titleFrame.grid(row=0, column=0, sticky=W + E, columnspan=4, padx=5)

    title = Label(titleFrame,
                  text="ERUNOOTRU ONNE" + "\n" +
                  "COVID-19 CONTACT TRACKING SOFTWARE",
                  fg='yellow',
                  bg="black",
                  width=48)
    title.config(font=("Courier", 30, "bold"))
    title.grid(row=0, column=1, sticky=N, columnspan=4)

    img = PhotoImage(file='unit.png')

    title1 = Label(titleFrame, image=img, bg="black")
    title1.grid(row=0, column=0, sticky=W)

    title2 = Label(titleFrame, image=img, bg="black")
    title2.grid(row=0, column=5, sticky=E)

    pers = LabelFrame(tab2, text="Select Person For Data Entry")
    pers.grid(row=1, column=0, sticky=W + E, columnspan=4, padx=5)

    contact = LabelFrame(tab2, text="Contact History")
    contact.grid(row=2, column=0, sticky=W + E, columnspan=2, padx=5)

    contact1 = LabelFrame(tab2, text="Contact History")
    contact1.grid(row=2, column=2, sticky=W + E, columnspan=2, padx=5)

    result = Frame(tab2)
    result.grid(row=4, column=0, sticky=W + E, columnspan=4, padx=5)

    lNames = Label(pers, text="Enter Name", width=30, anchor=W)
    lNames.grid(row=0, column=0, sticky=W, padx=10)

    lLoc = Label(pers, text="Enter Date", width=30, anchor=W)
    lLoc.grid(row=0, column=2, sticky=W, padx=10)

    lNames1 = Label(contact, text="Contact Personnel Name", width=28, anchor=W)
    lNames1.grid(row=0, column=0, sticky=W, padx=10)

    lLoc1 = Label(contact, text="Contact Location", width=28, anchor=W)
    lLoc1.grid(row=0, column=1, sticky=W, padx=10)

    lNames2 = Label(contact1,
                    text="Contact Personnel Name",
                    width=28,
                    anchor=W)
    lNames2.grid(row=0, column=0, sticky=W, padx=10)

    lLoc2 = Label(contact1, text="Contact Location", width=28, anchor=W)
    lLoc2.grid(row=0, column=1, sticky=W, padx=10)

    wb = openpyxl.load_workbook('covid.xlsx')
    sheet = wb.get_sheet_by_name('Sheet1')
    sheet1 = wb.get_sheet_by_name('Sheet2')

    nameList = []
    dateList = []
    locList = []

    names = StringVar(contact)
    names1 = StringVar(contact)
    names2 = StringVar(contact)
    names3 = StringVar(contact)
    names4 = StringVar(contact)
    names5 = StringVar(contact)
    names6 = StringVar(contact)
    names7 = StringVar(contact)
    names8 = StringVar(contact)
    names9 = StringVar(contact)
    names10 = StringVar(contact)
    names11 = StringVar(contact)
    names12 = StringVar(contact)
    names13 = StringVar(contact)
    names14 = StringVar(contact)
    names15 = StringVar(contact)
    names16 = StringVar(contact)

    loc = StringVar(contact)
    loc1 = StringVar(contact)
    loc2 = StringVar(contact)
    loc3 = StringVar(contact)
    loc4 = StringVar(contact)
    loc5 = StringVar(contact)
    loc6 = StringVar(contact)
    loc7 = StringVar(contact)
    loc8 = StringVar(contact)
    loc9 = StringVar(contact)
    loc10 = StringVar(contact)
    loc11 = StringVar(contact)
    loc12 = StringVar(contact)
    loc13 = StringVar(contact)
    loc14 = StringVar(contact)
    loc15 = StringVar(contact)
    loc16 = StringVar(contact)

    for i in range(2, len(sheet['A'])):

        p = str(sheet.cell(row=i, column=1).value)
        nameList.append(p)

    for i in range(2, len(sheet['1'])):

        p = str(sheet.cell(row=1, column=i).value)
        dateList.append(p)

    for i in range(2, len(sheet1['A'])):

        p = str(sheet1.cell(row=i, column=1).value)
        locList.append(p)

    nameOption = tkentrycomplete.AutocompleteCombobox(pers, textvariable=names)
    nameOption.set_completion_list(nameList)
    nameOption.grid(row=0, column=1, sticky=N, padx=10)

    locOption = tkentrycomplete.AutocompleteCombobox(pers, textvariable=loc)
    locOption.set_completion_list(dateList)
    locOption.grid(row=0, column=3, sticky=N, padx=10)

    nameOption1 = tkentrycomplete.AutocompleteCombobox(contact,
                                                       textvariable=names1)
    nameOption1.set_completion_list(nameList)
    nameOption1.grid(row=1, column=0, sticky=W, padx=10, pady=4)

    locOption1 = tkentrycomplete.AutocompleteCombobox(contact,
                                                      textvariable=loc1)
    locOption1.set_completion_list(locList)
    locOption1.grid(row=1, column=1, sticky=W, padx=10, pady=4)

    nameOption2 = tkentrycomplete.AutocompleteCombobox(contact,
                                                       textvariable=names2)
    nameOption2.set_completion_list(nameList)
    nameOption2.grid(row=2, column=0, sticky=W, padx=10, pady=4)

    locOption2 = tkentrycomplete.AutocompleteCombobox(contact,
                                                      textvariable=loc2)
    locOption2.set_completion_list(locList)
    locOption2.grid(row=2, column=1, sticky=W, padx=10, pady=4)

    nameOption3 = tkentrycomplete.AutocompleteCombobox(contact,
                                                       textvariable=names3)
    nameOption3.set_completion_list(nameList)
    nameOption3.grid(row=3, column=0, sticky=W, padx=10, pady=4)

    locOption3 = tkentrycomplete.AutocompleteCombobox(contact,
                                                      textvariable=loc3)
    locOption3.set_completion_list(locList)
    locOption3.grid(row=3, column=1, sticky=W, padx=10, pady=4)

    nameOption4 = tkentrycomplete.AutocompleteCombobox(contact,
                                                       textvariable=names4)
    nameOption4.set_completion_list(nameList)
    nameOption4.grid(row=4, column=0, sticky=W, padx=10, pady=4)

    locOption4 = tkentrycomplete.AutocompleteCombobox(contact,
                                                      textvariable=loc4)
    locOption4.set_completion_list(locList)
    locOption4.grid(row=4, column=1, sticky=W, padx=10, pady=4)

    nameOption5 = tkentrycomplete.AutocompleteCombobox(contact,
                                                       textvariable=names5)
    nameOption5.set_completion_list(nameList)
    nameOption5.grid(row=5, column=0, sticky=W, padx=10, pady=4)

    locOption5 = tkentrycomplete.AutocompleteCombobox(contact,
                                                      textvariable=loc5)
    locOption5.set_completion_list(locList)
    locOption5.grid(row=5, column=1, sticky=W, padx=10, pady=4)

    nameOption6 = tkentrycomplete.AutocompleteCombobox(contact,
                                                       textvariable=names6)
    nameOption6.set_completion_list(nameList)
    nameOption6.grid(row=6, column=0, sticky=W, padx=10, pady=4)

    locOption6 = tkentrycomplete.AutocompleteCombobox(contact,
                                                      textvariable=loc6)
    locOption6.set_completion_list(locList)
    locOption6.grid(row=6, column=1, sticky=W, padx=10, pady=4)

    nameOption7 = tkentrycomplete.AutocompleteCombobox(contact,
                                                       textvariable=names7)
    nameOption7.set_completion_list(nameList)
    nameOption7.grid(row=7, column=0, sticky=W, padx=10, pady=4)

    locOption7 = tkentrycomplete.AutocompleteCombobox(contact,
                                                      textvariable=loc7)
    locOption7.set_completion_list(locList)
    locOption7.grid(row=7, column=1, sticky=W, padx=10, pady=4)

    nameOption8 = tkentrycomplete.AutocompleteCombobox(contact,
                                                       textvariable=names8)
    nameOption8.set_completion_list(nameList)
    nameOption8.grid(row=8, column=0, sticky=W, padx=10, pady=4)

    locOption8 = tkentrycomplete.AutocompleteCombobox(contact,
                                                      textvariable=loc8)
    locOption8.set_completion_list(locList)
    locOption8.grid(row=8, column=1, sticky=W, padx=10, pady=4)

    nameOption9 = tkentrycomplete.AutocompleteCombobox(contact1,
                                                       textvariable=names9)
    nameOption9.set_completion_list(nameList)
    nameOption9.grid(row=1, column=0, sticky=W, padx=10, pady=4)

    locOption9 = tkentrycomplete.AutocompleteCombobox(contact1,
                                                      textvariable=loc9)
    locOption9.set_completion_list(locList)
    locOption9.grid(row=1, column=1, sticky=W, padx=10, pady=4)

    nameOption10 = tkentrycomplete.AutocompleteCombobox(contact1,
                                                        textvariable=names10)
    nameOption10.set_completion_list(nameList)
    nameOption10.grid(row=2, column=0, sticky=W, padx=10, pady=4)

    locOption10 = tkentrycomplete.AutocompleteCombobox(contact1,
                                                       textvariable=loc10)
    locOption10.set_completion_list(locList)
    locOption10.grid(row=2, column=1, sticky=W, padx=10, pady=4)

    nameOption11 = tkentrycomplete.AutocompleteCombobox(contact1,
                                                        textvariable=names11)
    nameOption11.set_completion_list(nameList)
    nameOption11.grid(row=3, column=0, sticky=W, padx=10, pady=4)

    locOption11 = tkentrycomplete.AutocompleteCombobox(contact1,
                                                       textvariable=loc11)
    locOption11.set_completion_list(locList)
    locOption11.grid(row=3, column=1, sticky=W, padx=10, pady=4)

    nameOption12 = tkentrycomplete.AutocompleteCombobox(contact1,
                                                        textvariable=names12)
    nameOption12.set_completion_list(nameList)
    nameOption12.grid(row=4, column=0, sticky=W, padx=10, pady=4)

    locOption12 = tkentrycomplete.AutocompleteCombobox(contact1,
                                                       textvariable=loc12)
    locOption12.set_completion_list(locList)
    locOption12.grid(row=4, column=1, sticky=W, padx=10, pady=4)

    nameOption13 = tkentrycomplete.AutocompleteCombobox(contact1,
                                                        textvariable=names13)
    nameOption13.set_completion_list(nameList)
    nameOption13.grid(row=5, column=0, sticky=W, padx=10, pady=4)

    locOption13 = tkentrycomplete.AutocompleteCombobox(contact1,
                                                       textvariable=loc13)
    locOption13.set_completion_list(locList)
    locOption13.grid(row=5, column=1, sticky=W, padx=10, pady=4)

    nameOption14 = tkentrycomplete.AutocompleteCombobox(contact1,
                                                        textvariable=names14)
    nameOption14.set_completion_list(nameList)
    nameOption14.grid(row=6, column=0, sticky=W, padx=10, pady=4)

    locOption14 = tkentrycomplete.AutocompleteCombobox(contact1,
                                                       textvariable=loc14)
    locOption14.set_completion_list(locList)
    locOption14.grid(row=6, column=1, sticky=W, padx=10, pady=4)

    nameOption15 = tkentrycomplete.AutocompleteCombobox(contact1,
                                                        textvariable=names15)
    nameOption15.set_completion_list(nameList)
    nameOption15.grid(row=7, column=0, sticky=W, padx=10, pady=4)

    locOption15 = tkentrycomplete.AutocompleteCombobox(contact1,
                                                       textvariable=loc15)
    locOption15.set_completion_list(locList)
    locOption15.grid(row=7, column=1, sticky=W, padx=10, pady=4)

    nameOption16 = tkentrycomplete.AutocompleteCombobox(contact1,
                                                        textvariable=names16)
    nameOption16.set_completion_list(nameList)
    nameOption16.grid(row=8, column=0, sticky=W, padx=10, pady=4)

    locOption16 = tkentrycomplete.AutocompleteCombobox(contact1,
                                                       textvariable=loc16)
    locOption16.set_completion_list(locList)
    locOption16.grid(row=8, column=1, sticky=W, padx=10, pady=4)

    dataObj = dataClass()

    bPreview = Button(tab2,
                      text="Update",
                      width=20,
                      bg='green',
                      command=dataObj.argsToDataEntry)
    bPreview.grid(row=3, column=1, padx=80)

    bPreviewc = Button(tab2,
                       text="Clear",
                       width=20,
                       bg='red',
                       command=dataObj.argsToClearData)
    bPreviewc.grid(row=3, column=3, padx=80)

    bBounds = Text(result, wrap=WORD, width=120, height=3)
    bBounds.grid(row=1, column=0, columnspan=4, padx=10, pady=5)
Esempio n. 5
0
class guiCovid:

    titleFrame = Frame(tab1, bg="black")
    titleFrame.grid(row=0, column=0, sticky=W + E, columnspan=4, padx=5)

    title = Label(titleFrame,
                  text="ERUNOOTRU ONNE" + "\n" +
                  "COVID-19 CONTACT TRACKING SOFTWARE",
                  fg='yellow',
                  bg="black",
                  width=48)
    title.config(font=("Courier", 30, "bold"))
    title.grid(row=0, column=1, sticky=N, columnspan=4)

    img = PhotoImage(file='unit.png')

    title1 = Label(titleFrame, image=img, bg="black")
    title1.grid(row=0, column=0, sticky=W)

    title2 = Label(titleFrame, image=img, bg="black")
    title2.grid(row=0, column=5, sticky=E)

    parameters = LabelFrame(tab1, text="Parameters")
    parameters.grid(row=1, column=0, sticky=W + E, columnspan=4, padx=5)

    names = StringVar(parameters)
    date = StringVar(parameters)
    days = StringVar(parameters)

    nameList = []
    dateList = []
    daysList = []

    wb = openpyxl.load_workbook('covid.xlsx')
    sheet = wb.get_sheet_by_name('Sheet1')

    for i in range(2, len(sheet['A'])):

        p = str(sheet.cell(row=i, column=1).value)
        nameList.append(p)

    for i in range(2, len(sheet['1'])):

        p = str(sheet.cell(row=1, column=i).value)
        dateList.append(p)

    for i in range(1, 31):

        daysList.append(i)

    lPers = Label(parameters, text="Name : ", anchor=W)
    lPers.grid(row=0, column=0, sticky=W, padx=10)

    ePers = tkentrycomplete.AutocompleteCombobox(parameters,
                                                 width=25,
                                                 textvariable=names)
    ePers.set_completion_list(nameList)
    ePers.grid(row=0, column=1, sticky=W, padx=10)

    lDate = Label(parameters, text="Date : ", anchor=W)
    lDate.grid(row=0, column=2, sticky=W, padx=10)

    eDate = tkentrycomplete.AutocompleteCombobox(parameters,
                                                 width=15,
                                                 textvariable=date)
    eDate.set_completion_list(dateList)
    eDate.grid(row=0, column=3, sticky=W, padx=10)

    lDays = Label(parameters, text="No of Days : ", anchor=W)
    lDays.grid(row=0, column=4, sticky=W, padx=10)

    eDays = ttk.Combobox(parameters,
                         textvariable=days,
                         width=5,
                         value=daysList)
    eDays.grid(row=0, column=5, sticky=W, padx=10)

    covidObj = covidClass()

    bPreview = Button(parameters,
                      text="Update",
                      width=12,
                      bg='green',
                      command=covidObj.argsToCovid)
    bPreview.grid(row=0, column=6, padx=40)

    bPreviewc = Button(parameters,
                       text="Clear",
                       width=12,
                       bg='red',
                       command=covidObj.argsToCovidClear)
    bPreviewc.grid(row=0, column=7, padx=0)

    isolation = LabelFrame(tab1, text="Isolation (Primary Contact)")
    isolation.grid(row=3, column=0, sticky=W + E, columnspan=4, padx=5)

    bBoundsi = Text(isolation, wrap=WORD, width=120, height=4)
    bBoundsi.grid(row=6, column=0, columnspan=4, padx=10, pady=5)

    quarantine = LabelFrame(tab1, text="Quarantine (Secondary Contact)")
    quarantine.grid(row=4, column=0, sticky=W + E, columnspan=4, padx=5)

    bBoundsq = Text(quarantine, wrap=WORD, width=120, height=3)
    bBoundsq.grid(row=6, column=0, columnspan=4, padx=10, pady=5)

    observation = LabelFrame(tab1, text="Under Observation (Teritary Contact)")
    observation.grid(row=5, column=0, sticky=W + E, columnspan=4, padx=5)

    bBoundso = Text(observation, wrap=WORD, width=120, height=3)
    bBoundso.grid(row=6, column=0, columnspan=4, padx=10, pady=5)

    location = LabelFrame(tab1, text="Locations Affected")
    location.grid(row=6, column=0, sticky=W + E, columnspan=4, padx=5)

    bBoundsl = Text(location, wrap=WORD, width=120, height=2)
    bBoundsl.grid(row=6, column=0, columnspan=4, padx=10, pady=5)
    def __init__(self):
        HEIGHT = 809
        WIDTH = 500
        font = ('Helvetica', 14)
        # ~ APP
        self.app = tk.Tk()
        # ~ STYLE
        ttk.Style().theme_use('classic')
        # ~ FRAME & BASIC SUTFF
        self.frame = tk.Frame(self.app)
        self.app.title('Clever domain name helper')
        self.frame.grid()

        # ~ which extension list do we take (which provider)
        self.extension_folder = "extension_lists"
        self.extension_lists = [
            re.sub(r"_.*", "", r) for r in os.listdir(self.extension_folder)
        ]
        self.TLD_providers_var = tk.StringVar()
        self.TLD_providers_var.set(self.extension_lists[0])
        self.TLD_list = tk.OptionMenu(self.frame,
                                      self.TLD_providers_var,
                                      *self.extension_lists,
                                      command=self.change_list)
        self.TLD_list.grid(row=0, column=0, sticky="nw")

        # ~ search list of extensions with autocomplete
        self.TLD_entry = tkec.AutocompleteCombobox(self.frame,
                                                   textvariable=tk.StringVar())
        self.TLD_entry.grid(row=0, column=1, sticky="n")
        self.change_list()

        # ~ binding the search to the combobox
        self.TLD_search = tk.Button(self.frame,
                                    text="search",
                                    font=font,
                                    command=self.reload_domains)
        self.TLD_search.grid(row=0, column=2, sticky="ne")

        # ~ ah yes the scrollbar
        self.scrollbar = tk.Scrollbar(self.frame, orient=tk.VERTICAL)
        self.scrollbar.grid(column=3, sticky='ns')

        # ~ show the results in a list

        self.lb = tk.Listbox(self.frame,
                             listvariable=tk.StringVar(),
                             width=50,
                             height=20,
                             font=font,
                             bd=10,
                             selectmode=tk.EXTENDED)
        self.lb.configure(yscrollcommand=self.scrollbar.set)
        self.lb.bind('<Double-Button-1>', self.visit_website)

        # ~ bind the scrollbar
        self.scrollbar.config(command=self.lb.yview)
        self.data = io.open("words/words-en.txt", "r",
                            encoding="utf8").read().splitlines()

        # ~ launch
        self.reload_domains()
        self.app.mainloop()
    def multipleCountryTrends(self, keyWordList, dateFrom, dateTo,
                              popularityTimeUnit, popularityTimeModule,
                              modifier):
        #Este if condition se fija si los datos son correctos, de no serlo el metodo no hace nada mas.
        if keyWordList == [''] or popularityTimeModule == '' or keyWordList[
                0] == '' or len(keyWordList) > 4:
            #Run error method.
            return None

        #Deletes data within the common operations labelFrame
        self.deleteOperationsFrameData()

        #Multiple country input and widgets
        countryLabel = Label(self.commonOperationsFrame,
                             text='Select up to 4 countries:')

        variable1 = StringVar(self.commonOperationsFrame)
        variable1.set('')
        countrySelection1 = tkentrycomplete.AutocompleteCombobox(
            self.commonOperationsFrame, textvariable=variable1)
        countrySelection1.set_completion_list(countryList)

        variable2 = StringVar(self.commonOperationsFrame)
        variable2.set('')

        variable3 = StringVar(self.commonOperationsFrame)
        variable3.set('')

        variable4 = StringVar(self.commonOperationsFrame)
        variable4.set('')

        variable1 = StringVar(self.commonOperationsFrame)
        variable1.set('')
        countrySelection1 = tkentrycomplete.AutocompleteCombobox(
            self.commonOperationsFrame, textvariable=variable1)
        countrySelection1.set_completion_list(countryList)

        countrySelection2 = tkentrycomplete.AutocompleteCombobox(
            self.commonOperationsFrame, textvariable=variable2)
        countrySelection2.set_completion_list(countryList)

        countrySelection3 = tkentrycomplete.AutocompleteCombobox(
            self.commonOperationsFrame, textvariable=variable3)
        countrySelection3.set_completion_list(countryList)

        countrySelection4 = tkentrycomplete.AutocompleteCombobox(
            self.commonOperationsFrame, textvariable=variable4)
        countrySelection4.set_completion_list(countryList)

        countryLabel.grid(row=0, column=0, padx=10)

        countrySelection1.grid(row=0, column=1)
        countrySelection2.grid(row=0, column=2)
        countrySelection3.grid(row=1, column=1)
        countrySelection4.grid(row=1, column=2)

        #Buttons for functionality
        saveButton = Button(
            self.commonOperationsFrame,
            text='Save as csv',
            command=lambda: self.saveMultipleDF(
                keyWordList, dateFrom, dateTo, popularityTimeUnit,
                int(popularityTimeModule), modifier, [
                    getTkInput(variable1),
                    getTkInput(variable2),
                    getTkInput(variable3),
                    getTkInput(variable4)
                ]))
        visualizeButton = Button(
            self.commonOperationsFrame,
            text='Visualize',
            command=lambda: self.visualizeMultipleDF(
                keyWordList, dateFrom, dateTo, popularityTimeUnit,
                int(popularityTimeModule), modifier, [
                    getTkInput(variable1),
                    getTkInput(variable2),
                    getTkInput(variable3),
                    getTkInput(variable4)
                ]))

        #Compare es toda su funcionalidad separada
        compareButton = Button(
            self.commonOperationsFrame,
            text='Compare',
            command=lambda: self.compareDF(
                keyWordList, dateFrom, dateTo, popularityTimeUnit,
                int(popularityTimeModule), modifier, [
                    getTkInput(variable1),
                    getTkInput(variable2),
                    getTkInput(variable3),
                    getTkInput(variable4)
                ]))

        saveButton.grid(row=2, column=0)
        visualizeButton.grid(row=2, column=1)
        compareButton.grid(row=2, column=2)