Jiffy.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:Jiffy 作者: h5rdly 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号