Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tom Pillot
Thymio Game
Commits
31d5ca88
Commit
31d5ca88
authored
Jul 03, 2020
by
Tom Pillot
Browse files
Fix edit and remove in the team chooser window
parent
3a94d6a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
game/team_chooser_ui.py
View file @
31d5ca88
...
...
@@ -21,10 +21,9 @@ class TeamWindowUi(qtw.QMainWindow):
self
.
table_view
=
qtw
.
QTableView
()
# Prevent user from
selecting and
modifying the cells
# Prevent user from modifying the cells
self
.
table_view
.
setEditTriggers
(
qtw
.
QAbstractItemView
.
NoEditTriggers
)
self
.
table_view
.
setFocusPolicy
(
qtc
.
Qt
.
NoFocus
)
self
.
table_view
.
setSelectionMode
(
qtw
.
QAbstractItemView
.
NoSelection
)
self
.
table_view
.
horizontalHeader
().
setSectionResizeMode
(
qtw
.
QHeaderView
.
Stretch
)
self
.
table_view
.
verticalHeader
().
setVisible
(
False
)
...
...
@@ -90,7 +89,6 @@ class TeamWindowUi(qtw.QMainWindow):
vlayout2
.
addWidget
(
self
.
time_edit
)
vlayout2
.
addItem
(
vertical_spacer
)
vlayout2
.
addWidget
(
self
.
start_button
)
# vlayout2.addStretch()
hlayout5
=
qtw
.
QHBoxLayout
()
hlayout5
.
addLayout
(
vlayout1
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment