Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SOHViewer
Manage
Activity
Members
Labels
Plan
Issues
14
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software Public
PASSOFT
SOHViewer
Commits
e435c52f
Commit
e435c52f
authored
3 years ago
by
Garrett Bates
Browse files
Options
Downloads
Patches
Plain Diff
Working on transitioning UI to use new QCalendar subclass
parent
48283eac
No related branches found
Branches containing commit
No related tags found
1 merge request
!3
Main UI and miscellaneous associated widgets
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sohstationviewer/view/mainwindow.py
+7
-0
7 additions, 0 deletions
sohstationviewer/view/mainwindow.py
with
7 additions
and
0 deletions
sohstationviewer/view/mainwindow.py
+
7
−
0
View file @
e435c52f
...
...
@@ -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.
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment