擅长:python、mysql、java
<p>使用</p>
<pre><code>inputter.exec_()
</code></pre>
<p>而不是</p>
<pre><code>inputter.show()
</code></pre>
<p>发件人:<a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qdialog.html#exec" rel="noreferrer">http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qdialog.html#exec</a></p>
<blockquote>
<p>This method is also a Qt slot with the C++ signature int exec().</p>
<p>Shows the dialog as a modal dialog, blocking until the user closes it.
The function returns a DialogCode result.</p>
<p>If the dialog is application modal, users cannot interact with any
other window in the same application until they close the dialog. If
the dialog is window modal, only interaction with the parent window is
blocked while the dialog is open. By default, the dialog is
application modal.</p>
<p>See also open(), show(), result(), and setWindowModality().</p>
</blockquote>