def __init__(self, db=DB, conf=CONF, **shnargs):
super(KivySearchBox, self).__init__(**shnargs)
#Widget.__init__(self, **shnargs)
self.index=DriveIndex(db, conf)
self.Plat=Platform()
self.start= self.Plat.start_func()
self.query=''
#self.ids.result_view.data=[{'text': 'oh boy'}]
#self.data=ObjectProperty(None)
self._keyboard=window.Window.request_keyboard(self._other_kb_function, self)
self._keyboard.bind(on_key_down=self._keyboard_events)
separator='*'.encode(ENC)
if not self.index.findex: # change to a FileIndex api call (_findex)
self.ids.result_view.data.append({'text': 'No cache database found. ' + 'Hit F5 to generate database'})
else:
self.ids.result_view.data.append({'text': 'Type to search. [F5 - Refresh Database]'})
#a=WindowBase()
#WindowBase.maximize(a)
#window.Window.maximized=True