def importText(self, item):
# get file path
f_path, filters = QFileDialog.getOpenFileName(
self, 'Select the text file that contains links')
# if path is correct:
if os.path.isfile(str(f_path)):
# create a text_queue_window for getting information.
text_queue_window = TextQueue(
self, f_path, self.queueCallback, self.persepolis_setting)
self.text_queue_window_list.append(text_queue_window)
self.text_queue_window_list[len(
self.text_queue_window_list) - 1].show()
# callback of text_queue_window and plugin_queue_window.AboutWindowi
# See importText and pluginQueue method for more information.
评论列表
文章目录