Help with Search dialog box - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: Help with Search dialog box (/showthread.php?tid=110575) |
Help with Search dialog box - k_zeon - 2011-09-20 I would like to implement a search feature in my addon and would like to know if anyone has an example to open the search dialog and then return a string that i can use ie open dialog: searchtext = getkeyboadtext url = 'http://www.xxxx.com/search' + url thks - divingmule - 2011-09-20 Code: searchStr = '' - k_zeon - 2011-09-20 divingmule Wrote: Thanks Divingmule, worked fine once i figured i had to use it in a function due to the returns Also if a user cancels, how do you make it so the page does not continue on to the next page and then shows 2 little dots (back dir) at top of page. thanks - divingmule - 2011-09-21 Good question, I don't know. Anyone else ? - k_zeon - 2011-09-24 I managed to find out why after selecting ok on a dialog box why it continued to the next page anyway. By default addon.end_of_directory() is called ie. if not play: addon.end_of_directory() so i comment out these 2 lines and add addon.end_of_directory() wherever in my code that i do want to goto a new page. usually after i have finished loading menus. That way when i click ok the end of directory does not get called. Code: elif mode == 'GetMovieSource': |