Advertisement
Guest User

Untitled

a guest
May 24th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. root = tkinter.Tk()
  2.  
  3. text_in_label=tkinter.Label(root,text='Plain text:')
  4. k_in_label=tkinter.Label(root,text='Encryption key:')
  5. encrypted_in_label=tkinter.Label(root,text='Encrypted text:')
  6.  
  7. text_in = tkinter.Text(root, height=1)
  8. k_in = tkinter.Text(root, width=4, height=1)
  9. encrypted_in = tkinter.Text(root, height=1)
  10.  
  11. to_enc = tkinter.Button(root, text='Encrypt', command=encrypt_text)
  12. to_dec = tkinter.Button(root, text='Decrypt', command=decrypt_text)
  13.  
  14. text_in_label.grid(row=0,column=0)
  15. k_in_label.grid(row=0,column=1)
  16. encrypted_in_label.grid(row=0,column=2)
  17. text_in.grid(row=1, column=0)
  18. k_in.grid(row=1, column=1)
  19. encrypted_in.grid(row=1, column=2)
  20. to_enc.grid(row=2, column=0)
  21. to_dec.grid(row=2, column=2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement