def csv_import_fnc(self, _):
""" Open a CsvImportWindow
"""
if self.try_locking("notes_management"):
self._close_window()
path, _ = QtWidgets.QFileDialog().getOpenFileName(
self,
"Imported",
"",
"CSV Files (*.csv)"
)
if path:
try:
self.cur_window = CsvImportWindow(path)
self._connect_window("notes_management")
except csv.Error:
api.redis.unlock("notes_management")
else:
api.redis.unlock("notes_management")
评论列表
文章目录