-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.py
53 lines (37 loc) · 1.17 KB
/
script.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#-------------------------------------------------------------------------------
# Name: sikessem-encryption
# Purpose:
#
# Author: SIGUI Kessé Emmanuel
#
# Created: 05/03/2021
# Copyright: (c) SIKessEm 2021
# Licence: MIT
#-------------------------------------------------------------------------------
from gui import Window, Form
window = Window('Encryption')
form = window.addForm()
form.rowconfigure([0, 1, 2, 3], minsize=50, weight=1)
form.columnconfigure([0, 1], minsize=50, weight=1)
word_field = form.addField(0)
word_label = word_field.setLabel('Tip the secret word :')
word_entry = word_field.setEntry()
word_label.grid()
word_entry.grid()
word_field.pack()
step_field = form.addField(1)
step_label = step_field.setLabel('Tip the step number :')
step_entry = step_field.setEntry()
step_label.grid()
step_entry.grid()
step_field.pack()
encrypt_block = form.addBlock()
encrypt_block.grid(row=2, column=0)
encrypt_button = encrypt_block.addButton('Encrypt')
encrypt_button.pack()
decrypt_block = form.addBlock()
decrypt_block.grid(row=2, column=1)
decrypt_button = decrypt_block.addButton('Decrypt')
decrypt_button.pack()
form.pack()
window.loop()