diff --git a/GUI.py b/GUI.py index b177c64..bcbc30a 100755 --- a/GUI.py +++ b/GUI.py @@ -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) @@ -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("", 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) diff --git a/crawler.pyc b/crawler.pyc index ef88d48..2663003 100644 Binary files a/crawler.pyc and b/crawler.pyc differ diff --git a/song_finder.py b/song_finder.py index a3040ad..93c5f8f 100755 --- a/song_finder.py +++ b/song_finder.py @@ -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)