mirror of
https://github.com/ankitects/anki.git
synced 2025-11-07 05:07:10 -05:00
get text window modal
This commit is contained in:
parent
915798cf46
commit
04ffba2495
1 changed files with 1 additions and 0 deletions
|
|
@ -160,6 +160,7 @@ def getText(prompt, parent=None, help=None, edit=None, default=u"", title="Anki"
|
|||
parent = aqt.mw.app.activeWindow() or aqt.mw.app.mw
|
||||
d = GetTextDialog(parent, prompt, help=help, edit=edit,
|
||||
default=default, title=title)
|
||||
d.setWindowModality(Qt.WindowModal)
|
||||
ret = d.exec_()
|
||||
return (unicode(d.l.text()), ret)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue