def test(self): from gui.second.frames import ResultInfo, RowFrame im = Image.open('gui/images_test/1.png') r = ResultInfo(text='test', link='http://example.com', response_num=20, image_fp=im) RowFrame(self, **r.as_dict()).pack()
def test(self): from gui.second.frames import ResultInfo, RowFrame r = ResultInfo(text='test', link='http://example.com', response_num=20, image_url='https://www.baidu.com/img/bd_logo1.png') RowFrame(self, **r.as_dict()).pack() self.set_destroy_time(3500)
def test(self): from gui.second.frames import ResultInfo, RowFrame r = ResultInfo(text='test', link='http://example.com', response_num=20) RowFrame(self, **r.as_dict()).pack()