From 0ef2278fafbfe9f138b7bad8afcfdf03da5ced55 Mon Sep 17 00:00:00 2001 From: VanillaHellen Date: Mon, 4 Jan 2021 12:58:04 +0100 Subject: [PATCH] changed Upload view --- win_venv/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win_venv/main.py b/win_venv/main.py index 9b44733..e551a05 100644 --- a/win_venv/main.py +++ b/win_venv/main.py @@ -33,7 +33,7 @@ def save_input(oldpath): # make timestampt the filename, so it wouln't overwrite timestamp = str(int(time.time())) filename = timestamp + '.' + oldpath.split('.')[-1] - newpath = filePath + '\\' + filename + newpath = inputFilePath + '\\' + filename shutil.copy(oldpath, newpath) return newpath @@ -79,7 +79,7 @@ class LibraryTable(QTableWidget): else: self.setHorizontalHeaderLabels(['Creation date', 'Filename', 'Options']) filePath = outputFilePath - self.horizontalHeader().setSectionResizeMode(0, QHeaderView.ResizeToContents) + self.horizontalHeader().setSectionResizeMode(0, QHeaderView.Stretch) self.horizontalHeader().setSectionResizeMode(1, QHeaderView.Stretch) self.horizontalHeader().setSectionResizeMode(2, QHeaderView.ResizeToContents)