Skip to content

Commit ed35ed1

Browse files
committed
add readme.md requirements file and images
1 parent a466c5f commit ed35ed1

File tree

5 files changed

+30
-4
lines changed

5 files changed

+30
-4
lines changed

WiFi Password Saver App/README.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
**Wi-Fi Password Saver**
2+
3+
**GOAL**
4+
Save Wi-fi password
5+
6+
**DESCRIPTION**
7+
Wi-Fi password saving app displays all the saved information (wifi-name,password,nearby network) on your system
8+
And you can also save this information on the text file.
9+
password is hidden and by clicking on the stars it shows with a message box.
10+
11+
12+
**WHAT I HAD DONE**
13+
In this code, I implemented the code by using the following concepts:
14+
+ Tkinter module
15+
+ subprocess module
16+
17+
**DEMONSTRATION**
18+
19+
![image](./images/wifi_password_saver1.png)
20+
![image](./images/wifi_password_saver2.png)
21+
22+
### Keyvan Majidi ###
23+
[https://github.com/keyvanmj]
Loading
Loading

WiFi Password Saver App/main.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ def initial_app(self):
3131
self.root.mainloop()
3232

3333
# pop up for passwords
34-
def show_password(self, password):
35-
Popup(title='Password', message=f'Your password : {password}', master=self.root)
34+
def show_password(self, password,wifiname):
35+
Popup(title='Password', message=f'{wifiname} : {password}', master=self.root)
3636
return
3737

3838
# main function for wi-fi password
@@ -119,7 +119,7 @@ def wifi_password_saver(self):
119119
password = tk.Label(self.text_box, font='Aerial 13 bold', text='***', cursor='hand2',
120120
background='white')
121121
password.grid(column=password_column, row=number + 5, pady=10)
122-
password.bind('<Button-1>', lambda e, passw=results[0]: self.show_password(passw))
122+
password.bind('<Button-1>', lambda e,wifiname=i, passw=results[0]: self.show_password(passw,wifiname))
123123

124124
is_nearby = tk.Label(self.text_box, background='white', font='Aerial 11',
125125
text="Y" if nearbyFlag else "N", fg="blue" if nearbyFlag else "red", )
@@ -153,7 +153,7 @@ def save_file_as(self, whatever=None):
153153
try:
154154
self.filename = filedialog.asksaveasfilename(
155155
defaultextension='.txt',
156-
filetypes=[('Text', '*.txt'), ('All files', '*'), ]
156+
filetypes=[('Text', '*.txt')]
157157
)
158158
f = open(self.filename, 'w')
159159
self.structure_data_in_file(f)
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
The required library is:
2+
tkinter
3+
subprocess

0 commit comments

Comments
 (0)