def show_book_detail(book_no): book_info = library.get_book_info(book_no=book_no) if(book_info != False): book_name.config( text = 'Book Name :'+book_info['book_name'] , anchor='w') book_author.config( text = 'Book Author :'+book_info['book_author'] , anchor='w') book_publisher.config( text = 'Book Publisher :'+book_info['book_publisher'] , anchor='w') for key in ['modified_book_no', 'modified_book_name', 'modified_book_author', 'modified_book_publisher']: bucket[key].entry.delete(0, END) bucket[key].entry.insert(END, book_info[ key[9:] ])
def show_book_detail(book_no): book_info = library.get_book_info(book_no=book_no) if (book_info != False): book_name.config(text='Book Name :' + book_info['book_name'], anchor='w') book_author.config(text='Book Author :' + book_info['book_author'], anchor='w') book_publisher.config(text='Book Publisher :' + book_info['book_publisher'], anchor='w') for key in [ 'modified_book_no', 'modified_book_name', 'modified_book_author', 'modified_book_publisher' ]: bucket[key].entry.delete(0, END) bucket[key].entry.insert(END, book_info[key[9:]])
def set_book_no(book_name): bucket['book_no'].entry.delete(0, END) bucket['book_no'].entry.insert( END, library.get_book_info(book_name=book_name)['book_no'])
def set_book_no(book_name): bucket['book_no' ].entry.delete(0, END) bucket['book_no' ].entry.insert(END, library.get_book_info(book_name=book_name)['book_no'])