def query_text(self, event): selec_book_info = self.gui.Ls_box_ct.get(self.gui.Ls_box_ct.curselection()) print(selec_book_info) self.gui.init_data_Text.configure(state='normal') # 操作信息窗口属性设为normal 此时窗口内容可编辑 win2 = progress_bar.MainWindow() win2.start() self.view_text(selec_book_info) win2.stop() self.gui.init_data_Text.configure(state='disabled') # 操作信息窗口属性设为disable 此时窗口内容不可编辑
def query_all_chapters(self, event): selec_book_info = self.gui.Ls_box.get(self.gui.Ls_box.curselection()) print(selec_book_info) print(selec_book_info.split(" ")[0]) book_name = selec_book_info.split(" ")[0] self.gui.init_data_Text.configure(state='normal') # 操作信息窗口属性设为normal 此时窗口内容可编辑 # 开启进度条 win2 = progress_bar.MainWindow() win2.start() self.view_price(book_name) win2.stop()
def search_train_message(self): # 开启进度条 win2 = progress_bar.MainWindow() win2.start() self.view_list() win2.stop()