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
50786022
Commit
50786022
authored
Jan 30, 2022
by
Wolfgang Rohdewald
Browse files
ModelTest is not yet supported by PySide2
parent
06a0c725
Pipeline
#130787
failed with stage
in 1 minute and 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/common.py
View file @
50786022
...
...
@@ -17,7 +17,7 @@ import logging.handlers
import
socket
from
signal
import
signal
,
SIGABRT
,
SIGINT
,
SIGTERM
from
qt
import
QStandardPaths
,
QObject
,
QGraphicsItem
from
qt
import
QStandardPaths
,
QObject
,
QGraphicsItem
,
QSize
# pylint: disable=invalid-name
...
...
@@ -259,8 +259,24 @@ Options {stropt} take a string argument like {example}.
type
.
__setattr__
(
Debug
,
option
,
value
)
if
Debug
.
time
:
Debug
.
time
=
datetime
.
datetime
.
now
()
if
Debug
.
modelTest
and
not
Debug
.
modeltest_is_supported
():
print
(
'--debug=modelTest is not yet supported for pyside, use pyqt'
)
sys
.
exit
(
2
)
return
None
@
staticmethod
def
modeltest_is_supported
():
"""Is the QT binding supported."""
try
:
import
sip
except
ImportError
:
return
False
try
:
_
=
sip
.
cast
(
QSize
(),
QSize
)
return
True
except
TypeError
:
return
False
@
staticmethod
def
str
():
"""__str__ does not work with class objects"""
...
...
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