mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-10-02 01:56:43 -04:00
Add --test as command line option for test purposes
This commit is contained in:
parent
bee5d20670
commit
0ed8eb5a40
@ -58,7 +58,8 @@ def main():
|
|||||||
help="Choose which wrapper/framework is to be used to run the example.", type=str)
|
help="Choose which wrapper/framework is to be used to run the example.", type=str)
|
||||||
parser.add_argument('--no_dark', action='store_true',
|
parser.add_argument('--no_dark', action='store_true',
|
||||||
help="Exihibts the original window (without qdarkstyle).")
|
help="Exihibts the original window (without qdarkstyle).")
|
||||||
|
parser.add_argument('--test', action='store_true',
|
||||||
|
help="Auto close window after 2s.")
|
||||||
# parsing arguments from command line
|
# parsing arguments from command line
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
@ -177,7 +178,7 @@ def main():
|
|||||||
# connect some actions, signals and functions
|
# connect some actions, signals and functions
|
||||||
# auto quit after 2s when testing on travis-ci
|
# auto quit after 2s when testing on travis-ci
|
||||||
|
|
||||||
if "--travis" in sys.argv:
|
if "--test" in sys.argv:
|
||||||
QTimer.singleShot(2000, app.exit)
|
QTimer.singleShot(2000, app.exit)
|
||||||
|
|
||||||
# run
|
# run
|
||||||
|
Loading…
Reference in New Issue
Block a user