@@ -31,8 +31,8 @@ def initial_app(self):
31
31
self .root .mainloop ()
32
32
33
33
# 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 )
36
36
return
37
37
38
38
# main function for wi-fi password
@@ -119,7 +119,7 @@ def wifi_password_saver(self):
119
119
password = tk .Label (self .text_box , font = 'Aerial 13 bold' , text = '***' , cursor = 'hand2' ,
120
120
background = 'white' )
121
121
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 ))
123
123
124
124
is_nearby = tk .Label (self .text_box , background = 'white' , font = 'Aerial 11' ,
125
125
text = "Y" if nearbyFlag else "N" , fg = "blue" if nearbyFlag else "red" , )
@@ -153,7 +153,7 @@ def save_file_as(self, whatever=None):
153
153
try :
154
154
self .filename = filedialog .asksaveasfilename (
155
155
defaultextension = '.txt' ,
156
- filetypes = [('Text' , '*.txt' ), ( 'All files' , '*' ), ]
156
+ filetypes = [('Text' , '*.txt' )]
157
157
)
158
158
f = open (self .filename , 'w' )
159
159
self .structure_data_in_file (f )
0 commit comments