@@ -94,13 +94,13 @@ def helpFrame(self):
94
94
for i in range (1 , 9 ):
95
95
Label (self .help_window , wraplength = 500 ,
96
96
justify = "left" , font = ("" , 12 ),
97
- text = str (i )+ ". " + lines [i ]).pack (anchor = W , pady = 2 , padx = 10 )
97
+ text = str (i ) + ". " + lines [i ]).pack (anchor = W , pady = 2 , padx = 10 )
98
98
Label (self .help_window , font = ("Helvetica 16 underline" ),
99
99
text = "NOTE" ).pack (anchor = W , padx = 10 , pady = 10 )
100
100
for i in range (8 , 11 ):
101
101
Label (self .help_window , wraplength = 500 ,
102
102
justify = "left" , font = ("" , 12 ),
103
- text = str (i - 7 ) + ". " + lines [i ]).pack (anchor = W , pady = 2 , padx = 10 )
103
+ text = str (i - 7 ) + ". " + lines [i ]).pack (anchor = W , pady = 2 , padx = 10 )
104
104
105
105
self .help_window .protocol ("WM_DELETE_WINDOW" , self .close_window )
106
106
@@ -147,7 +147,7 @@ def searchSong(self):
147
147
self .results .pack (pady = 10 , expand = 1 , fill = BOTH )
148
148
for i in range (len (self .songlist )):
149
149
self .results .insert (parent = '' , index = 'end' , iid = i , text = '' ,
150
- values = (str (i + 1 ),
150
+ values = (str (i + 1 ),
151
151
self .songlist [i ]['title' ],
152
152
self .songlist [i ]['duration' ]))
153
153
@@ -181,7 +181,7 @@ def downloadSong(self):
181
181
filename = [f for f in os .listdir () if f .endswith ('.mp3' )]
182
182
if (filename ):
183
183
# rename file and save in download folder
184
- os .rename (filename [0 ], 'downloads/' + filename [0 ][:- 14 ]+ ".mp3" )
184
+ os .rename (filename [0 ], 'downloads/' + filename [0 ][:- 14 ] + ".mp3" )
185
185
tkinter .messagebox .showinfo (
186
186
'Song Downloaded Successfully' ,
187
187
"Your song is downloaded." )
0 commit comments