Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

test commit for hackathon #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
13 changes: 9 additions & 4 deletions projects/Password_generator/password_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,18 @@ def button(self):
password_generator.pack()

def generate_password(self):
characters = string.ascii_letters + string.punctuation + string.digits
password = ""
all_the_characters_to_use = string.ascii_letters
all_the_characters_to_use = all_the_characters_to_use + string.punctuation
all_the_characters_to_use = all_the_characters_to_use + string.digits
return_password = ""
for x in range(28):
password+=choice(characters)
return_password = return_password + choice(all_the_characters_to_use)
self.password_entry.delete(0, END)
self.password_entry.insert(0, password)


def main():
print "this is old print style, and not gonna be used"

#display
app = App()
app.window.mainloop()