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

Working on transitioning UI to use new QCalendar subclass

parent 48283eac
No related branches found
No related tags found
1 merge request!3Main UI and miscellaneous associated widgets
......@@ -5,6 +5,7 @@ from functools import partial
from PySide2 import QtCore, QtGui, QtWidgets
from sohstationviewer.view.ui.main_ui import Ui_MainWindow
from sohstationviewer.view.calendardialog import CalendarDialog
from sohstationviewer.view.ui.calendar_widget import CalendarWidget
class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
"""
......@@ -60,6 +61,12 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
self.timeFromPushButton.clicked.connect(self.onStartTimeCalendar)
self.timeToPushButton.clicked.connect(self.onEndTimeCalendar)
self.timeToDateEdit.setCalendarWidget(CalendarWidget(self))
self.timeToDateEdit.setDate(QtCore.QDate.currentDate())
self.timeFromDateEdit.setCalendarWidget(CalendarWidget(self))
self.timeFromDateEdit.setDate(QtCore.QDate.currentDate())
@QtCore.Slot()
def deleteSetupFile(self):
print('Deleting setup 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