Beispiel #1
0
def delete_command():
    back.delete(selected_tuple[0])
    e1.delete(0, END)
    e2.delete(0, END)
    e3.delete(0, END)
    e4.delete(0, END)
    view_command()
Beispiel #2
0
def delete_command():

    currrent = tree.focus()
    back.delete(tree.item(currrent, 'text'))
    tree.delete(*tree.get_children())
    for row in back.view():
        tree.insert('',
                    END,
                    text=row[0],
                    values=(row[1], row[2], row[3], row[4], row[5], row[6],
                            row[7], row[8]))
Beispiel #3
0
def frontMain(con):

    layout2 = [[sg.Text('Logins Registrados:')], [sg.Text('')],
               [
                   sg.Text('Serviço', size=(15, 1)),
                   sg.Text('User/Email', size=(30, 1))
               ]]

    listLogins = back.selectData(con)

    for row in listLogins:
        layout2.append([
            sg.Text(row[1], size=(15, 1)),
            sg.Text(row[2], size=(30, 1)),
            sg.Button('Visualizar senha', size=(15, 1), key=row[3]),
            sg.Button('Excluir',
                      size=(15, 1),
                      key='del__' + str(row[0]),
                      button_color=('white', '#B22222'))
        ])

    layout2.append([sg.Button('Criar novo')])

    window = sg.Window('Dados', layout2, size=(600, 300))

    while True:

        event, values = window.read()

        if event == sg.WIN_CLOSED or event == 'Exit':
            break

        elif event == 'Criar novo':
            window.close()
            newLogin(con)

        else:
            parting = event.split('__')
            if len(parting) > 1:
                back.delete(con, parting[1])
                window.close()
                frontMain(con)
            else:
                messagebox.showinfo('Senha', \
            event)
Beispiel #4
0
def delete_command():
    back.delete(selected_tuple[0])
Beispiel #5
0
def delete_command():
    id = selected_row[0]
    back.delete(id)
    view_command()
Beispiel #6
0
def deletecom():
    back.delete(selrow[0])
Beispiel #7
0
    if button == "CLEAR LIST":
        if task:
            back.cleartable()
            task = back.readtask()
            priority = back.readpriority()
            w.FindElement('tbox').Update(task)
            w.FindElement('pbox').Update(priority)

        else:
            s.Popup("You have no tasks", auto_close=1, auto_close_duration=3)
            continue

    if button == "DELETE":
        if task:
            x = values['tbox'][0]
            back.delete(x)
            task = back.readtask()
            priority = back.readpriority()
            w.FindElement('tbox').Update(task)
            w.FindElement('pbox').Update(priority)
        else:
            s.Popup("You have no tasks", auto_close=1, auto_close_duration=3)
            continue

    if button == "DONE":
        if task:
            x = values['tbox'][0]
            back.complete(x)
            task = back.readtask()
            priority = back.readpriority()
            completed = back.readcompleted()
Beispiel #8
0
def delete_command():
    back.delete(selected_row[0])