value tab plots complex selection; graphwindows shows last path for export; filedialog uses call not init

This commit is contained in:
dominik
2022-11-19 17:59:35 +01:00
parent a61dc40343
commit 4ca8f434aa
11 changed files with 206 additions and 157 deletions

View File

@@ -1,5 +1,7 @@
from __future__ import annotations
from pathlib import Path
from numpy import c_
from nmreval.io.graceeditor import GraceEditor
@@ -13,7 +15,7 @@ class GraceExporter:
self.__agr = None
self.__opts = kwargs
def export(self, outfile: str, mode: int | str = 'w'):
def export(self, outfile: str | Path, mode: int | str = 'w'):
if mode == 'w':
self.__agr = GraceEditor()
else: