final cleanup
This commit is contained in:
parent
c4d6e9fd66
commit
980b323a1d
@ -27,8 +27,8 @@ def save_input(oldpath):
|
||||
timestamp = str(int(time.time()))
|
||||
basename = os.path.basename(oldpath)
|
||||
try:
|
||||
basename.index('.')
|
||||
basename_no_extension = basename[:basename.index('.')]
|
||||
index_of_dot = basename.index('.')
|
||||
basename_no_extension = basename[:index_of_dot]
|
||||
extension = basename[index_of_dot:]
|
||||
except ValueError:
|
||||
basename_no_extension = basename
|
||||
@ -47,12 +47,13 @@ class deletePopup(QMessageBox):
|
||||
self.setWindowTitle("Confirm deletion")
|
||||
self.setStandardButtons(self.Yes | self.No)
|
||||
|
||||
|
||||
class analizePopup(QMessageBox):
|
||||
def __init__(self, parent=None):
|
||||
super(analizePopup, self).__init__(parent)
|
||||
self.setStyleSheet("QLabel{min-width: 100px; max-width: 100px; qproperty-alignment: AlignCenter;}");
|
||||
self.setWindowIcon(QIcon(scriptPath + os.path.sep + 'static/v_logo.jpg'))
|
||||
self.setText("Analizing file...")
|
||||
self.setText("Analyzing file...")
|
||||
self.setWindowTitle("File analysis")
|
||||
# create Label
|
||||
self.setIconPixmap(QPixmap(scriptPath + os.path.sep + 'static/loading.gif'))
|
||||
@ -64,6 +65,7 @@ class analizePopup(QMessageBox):
|
||||
movie.start()
|
||||
self.setStandardButtons(self.Cancel)
|
||||
|
||||
|
||||
class LibraryTableButtons(QWidget):
|
||||
def __init__(self, file, table, type, mainWindow, parent=None):
|
||||
super(LibraryTableButtons,self).__init__(parent)
|
||||
@ -91,6 +93,7 @@ class LibraryTableButtons(QWidget):
|
||||
self.exPopup.close()
|
||||
# mainWindow.showVisualisation(file) <- ALWAYS shows even if you cancel the process and we don't have time to fix that now
|
||||
|
||||
|
||||
layout = QHBoxLayout()
|
||||
layout.setContentsMargins(0,0,0,0)
|
||||
layout.setSpacing(0)
|
||||
|
Loading…
Reference in New Issue
Block a user