Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Games
Kajongg
Commits
06a0c725
Commit
06a0c725
authored
Jan 30, 2022
by
Wolfgang Rohdewald
Browse files
new assertion for UITile.tile setter
parent
00dfe6c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/uitile.py
View file @
06a0c725
...
...
@@ -304,6 +304,7 @@ class UITile(AnimatedMixin, QGraphicsObject, StrMixin):
def
tile
(
self
,
value
):
# pylint: disable=arguments-differ
"""set tile name and update display"""
if
value
is
not
self
.
_tile
:
assert
not
self
.
_tile
.
isKnown
or
(
self
.
_tile
.
exposed
==
value
.
exposed
)
self
.
_tile
=
value
self
.
setDrawingOrder
()
# because known tiles are above unknown tiles
self
.
update
()
...
...
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