vdat.gui.mainwindow – The main VDAT window¶
Create the main window of the VDAT GUI
-
class
vdat.gui.mainwindow.VDATMainWindow[source]¶ Bases:
PyQt5.QtWidgets.QMainWindowVDAT customisation of the main window.
Custom slot¶ Name Signature Description remove_files()list, list run the removal of files in a thread and change the cursor to the wait cursor Connect the signals from the menu bar
-
setup()[source]¶ Set-up the user interface for VDAT
Parameters: - queue :
vdat.gui.queue.Queueinstance queue where to push the command. It must have a
add_commandmethod
- queue :
-
closeEvent(event)[source]¶ Override the user closing the window. Instead wait for anything on the immediate queue to finish running and then quit.
-
remove_files(paths, matches)[source]¶ Slot to connect the
vdat.gui.menubar.VDATMenuBar.sig_remove_filessignal that removes the files in a thread. The mouse cursor is temporarily set to wait.Parameters: - paths : list of strings
paths containing the files to remove
- matches : list of string
file names or wildcards pattern for removal