擅长:python、mysql、java
<p><code>Frame</code>不是新样式的类,但是<code>super</code>需要新样式的类才能工作。在python-3.x中,一切都是一个新样式的类,<code>super</code>将正常工作。</p>
<p>您需要在Python2中硬编码超类和方法:</p>
<pre><code>Frame.__init__(self, master)
</code></pre>
<p>就像他们在<a href="https://docs.python.org/2.7/library/tkinter.html#the-window-manager" rel="nofollow noreferrer">official documentation</a>里那样。</p>