Merge pull request 'VIS-34' (#7) from VIS-34 into master
Reviewed-on: #7
This commit is contained in:
commit
a19168fc05
@ -33,7 +33,7 @@ def save_input(oldpath):
|
|||||||
# make timestampt the filename, so it wouln't overwrite
|
# make timestampt the filename, so it wouln't overwrite
|
||||||
timestamp = str(int(time.time()))
|
timestamp = str(int(time.time()))
|
||||||
filename = timestamp + '.' + oldpath.split('.')[-1]
|
filename = timestamp + '.' + oldpath.split('.')[-1]
|
||||||
newpath = filePath + '\\' + filename
|
newpath = inputFilePath + '\\' + filename
|
||||||
shutil.copy(oldpath, newpath)
|
shutil.copy(oldpath, newpath)
|
||||||
return newpath
|
return newpath
|
||||||
|
|
||||||
@ -79,7 +79,7 @@ class LibraryTable(QTableWidget):
|
|||||||
else:
|
else:
|
||||||
self.setHorizontalHeaderLabels(['Creation date', 'Filename', 'Options'])
|
self.setHorizontalHeaderLabels(['Creation date', 'Filename', 'Options'])
|
||||||
filePath = outputFilePath
|
filePath = outputFilePath
|
||||||
self.horizontalHeader().setSectionResizeMode(0, QHeaderView.ResizeToContents)
|
self.horizontalHeader().setSectionResizeMode(0, QHeaderView.Stretch)
|
||||||
self.horizontalHeader().setSectionResizeMode(1, QHeaderView.Stretch)
|
self.horizontalHeader().setSectionResizeMode(1, QHeaderView.Stretch)
|
||||||
self.horizontalHeader().setSectionResizeMode(2, QHeaderView.ResizeToContents)
|
self.horizontalHeader().setSectionResizeMode(2, QHeaderView.ResizeToContents)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user