Skip to content
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
10 changes: 8 additions & 2 deletions GUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def search(self):
"""
This function initiates a new search based on the text entered in the search bar.
"""
self.b1=Button(self, text='Search', command=self.search)
search_string = self.search_var.get()
print(search_string)
self.populate_Similar_Songs(search_string)
Expand Down Expand Up @@ -72,18 +73,23 @@ def widgets(self):
"""

Label(self, text="Song Downloader System", background="#CC0001", font= ("Comic Sans MS",16)).grid(row=0, column=0, padx=20)
self.search_var = StringVar()

self.search_var = StringVar()

self.entry = Entry(self, textvariable=self.search_var, width=45)

self.b1=Button(self, text='Search', command=self.search)

self.b1.grid(row=1, column=1, sticky=W, padx=20, pady=10)

self.lbox = Listbox(self, width=45, height=15)

self.lbox.grid(row=2, column=0, columnspan=6,sticky=W, padx=20, pady=10)

self.lbox.bind("<Double-Button-1>", self.onDouble)

self.lbox2 = Listbox(self, width=45, height=15)

self.lbox2.grid(row=2, column=1, columnspan=6,sticky=W, padx=2000, pady=10)


Expand Down
Binary file modified crawler.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion song_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def compareArtists(artists, search):

def searchStringLogic(cursor, search_string):
words = search_string.split(' ')
for i in range(len(words) - 1):
for i in range(len(words) + 1):
artist = '-'.join(words[0:i])
song = '-'.join(words[i+1:])
print('Artist', artist)
Expand Down