Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sourcery refactored ascii-encoding branch #1

Open
wants to merge 1 commit into
base: ascii-encoding
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions console.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,9 @@
action = ''

while action not in ['-', '+', 'e', 'd']:

action = input('Encrypter (+|e) ou Décrypter (-|d) ? ')

else:

if action in ['-', 'd']:

code = decrypt(word, step)

else:

code = encrypt(word, step)



code = decrypt(word, step) if action in ['-', 'd'] else encrypt(word, step)
Comment on lines -28 to +30
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines 28-42 refactored with the following changes:

print('Le mot crypté est :', code)
print('-------------------------------------------------')
input("===Tapez sur n'importe quel touche pour sortir===")
3 changes: 1 addition & 2 deletions gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ def loop(self):

def addForm(self, **kw):
"""Create a new form"""
form = Form(self, **kw)
return form
return Form(self, **kw)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function Window.addForm refactored with the following changes:



class Form(Frame):
Expand Down