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