mirror of
https://github.com/shizand/statapp.git
synced 2024-12-23 20:22:58 +03:00
fix: исправлена выбор файла для загрузки (Linux)
This commit is contained in:
parent
83d9faeb85
commit
c1809a0bc7
@ -16,7 +16,7 @@ class FileSLCModel:
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def loadFile(self):
|
def loadFile(self):
|
||||||
self.file_name, _ = QFileDialog.getOpenFileName(None, "Загрузить файл", "", "Files (*.txt;*.csv)")
|
self.file_name, _ = QFileDialog.getOpenFileName(None, "Загрузить файл", "", "Files (*.txt *.csv)")
|
||||||
if self.file_name:
|
if self.file_name:
|
||||||
try:
|
try:
|
||||||
content = np.genfromtxt(self.file_name, delimiter=',', invalid_raise=True)
|
content = np.genfromtxt(self.file_name, delimiter=',', invalid_raise=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user