mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Add docstring explaining introduced arguments of _run()
This commit is contained in:
parent
3334cbd249
commit
755c9487c9
1 changed files with 9 additions and 0 deletions
|
@ -234,6 +234,15 @@ def run():
|
||||||
traceback.format_exc())
|
traceback.format_exc())
|
||||||
|
|
||||||
def _run(argv=None, exec=True):
|
def _run(argv=None, exec=True):
|
||||||
|
"""Start AnkiQt application or reuse an existing instance if one exists.
|
||||||
|
|
||||||
|
If the function is invoked with exec=False, the AnkiQt will not enter
|
||||||
|
the main event loop - instead the application object will be returned.
|
||||||
|
|
||||||
|
The 'exec' and 'argv' arguments will be useful for testing purposes.
|
||||||
|
|
||||||
|
If no 'argv' is supplied then 'sys.argv' will be used.
|
||||||
|
"""
|
||||||
global mw
|
global mw
|
||||||
|
|
||||||
if argv is None:
|
if argv is None:
|
||||||
|
|
Loading…
Reference in a new issue