Skip to content
Snippets Groups Projects
Commit e40316b0 authored by Garrett Bates's avatar Garrett Bates
Browse files

Set initial path for widget displaying selected data directory to the current...

Set initial path for widget displaying selected data directory to the current working directory at startup
parent b595d3ad
No related branches found
No related tags found
1 merge request!3Main UI and miscellaneous associated widgets
import os
import sys
import pathlib
from PySide2 import QtCore, QtGui, QtWidgets
from main_ui import Ui_MainWindow
......@@ -15,6 +17,9 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
super().__init__(parent)
self.setupUi(self)
cwd = os.path.dirname(pathlib.Path().absolute())
self.currentDirectoryChanged.emit(cwd)
@QtCore.Slot()
def readSelectedFile(self):
print('Reading currently selected file.')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment