Untitled
unknown
python
9 months ago
547 B
3
Indexable
from PySimpleGUI import PySimpleGUI as sg sg.theme('Reddit') layout = [ [sg.Text('Usuário'), sg.Input(key='usuario')], [sg.Text('Senha'), sg.Input(key='senha')], [sg.Checkbox('Salvar o login?')], [sg.Button('Entrar')] ] janela = sg.Window('Tela de login', layout) while True: eventos, valores = janela.read() if eventos == sg.WINDOW_CLOSED: break if eventos == 'Entrar': if valores['usuario'] == LOGIN_USER and valores['senha'] == SENHA_USER: print('Login confirmado!')
Editor is loading...
Leave a Comment