mirror of
https://github.com/ankitects/anki.git
synced 2025-11-08 13:47:13 -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
|
parent = aqt.mw.app.activeWindow() or aqt.mw.app.mw
|
||||||
d = GetTextDialog(parent, prompt, help=help, edit=edit,
|
d = GetTextDialog(parent, prompt, help=help, edit=edit,
|
||||||
default=default, title=title)
|
default=default, title=title)
|
||||||
|
d.setWindowModality(Qt.WindowModal)
|
||||||
ret = d.exec_()
|
ret = d.exec_()
|
||||||
return (unicode(d.l.text()), ret)
|
return (unicode(d.l.text()), ret)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue