Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nexus
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
nexus
Commits
4a4b2d7c
Commit
4a4b2d7c
authored
1 year ago
by
Maeva Pourpoint
Browse files
Options
Downloads
Patches
Plain Diff
Set constraints on header resizing for Station Select and Channel Select windows
parent
4bd3991e
No related branches found
No related tags found
1 merge request
!27
Fix to issue 34: Allow user to copy datalogger type, gain and sensor type to other stations
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
nexus/ChannelSelectDialog.py
+4
-1
4 additions, 1 deletion
nexus/ChannelSelectDialog.py
nexus/StationSelectDialog.py
+1
-0
1 addition, 0 deletions
nexus/StationSelectDialog.py
with
5 additions
and
1 deletion
nexus/ChannelSelectDialog.py
+
4
−
1
View file @
4a4b2d7c
...
...
@@ -12,7 +12,8 @@ import os
from
PySide6.QtCore
import
Qt
from
PySide6.QtGui
import
QFontMetrics
from
PySide6.QtUiTools
import
loadUiType
from
PySide6.QtWidgets
import
QApplication
,
QTableWidgetItem
from
PySide6.QtWidgets
import
(
QApplication
,
QTableWidgetItem
,
QAbstractItemView
,
QHeaderView
)
from
.obspyImproved
import
utc_to_str
...
...
@@ -61,6 +62,7 @@ class ChannelSelectDialog(*load_ui('ChannelSelectDialog.ui')):
super
().
setupUi
(
self
)
self
.
setWindowTitle
(
'
Select channels
'
)
self
.
label
.
setText
(
'
Station: {}
'
.
format
(
self
.
station
.
code
))
self
.
tableWidget
.
setSelectionMode
(
QAbstractItemView
.
ExtendedSelection
)
self
.
tableWidget
.
setRowCount
(
len
(
self
.
station
))
self
.
tableWidget
.
horizontalHeader
().
sectionClicked
.
connect
(
self
.
sort_table
)
# Add channels
...
...
@@ -87,6 +89,7 @@ class ChannelSelectDialog(*load_ui('ChannelSelectDialog.ui')):
self
.
chan_map
[
row
]
=
chan
assert
True
self
.
tableWidget
.
resizeColumnsToContents
()
self
.
tableWidget
.
horizontalHeader
().
setSectionResizeMode
(
QHeaderView
.
Fixed
)
if
__name__
==
'
__main__
'
:
...
...
This diff is collapsed.
Click to expand it.
nexus/StationSelectDialog.py
+
1
−
0
View file @
4a4b2d7c
...
...
@@ -89,3 +89,4 @@ class StationSelectDialog(*load_ui('StationSelectDialog.ui')):
self
.
tableWidget
.
setItem
(
row
,
col
,
item
)
self
.
sta_map
[
row
]
=
sta
self
.
tableWidget
.
resizeColumnsToContents
()
self
.
tableWidget
.
horizontalHeader
().
setSectionResizeMode
(
QHeaderView
.
Fixed
)
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