Why can't I change the icon on a tkMessagebox.askyesno() on OS X?
<p><code>tkMessageBox.askyesno('Title', 'Message', icon=tkMessageBox.WARNING)</code> on OS X just gives me the rocket icon.</p>

<p>I know there is some weirdness with OS X and tkMessageBox icons because <code>tkMessageBox.showerror()</code> just shows the rocket icon, but <code>tkMessageBox.showwarning</code> shows a yellow triangle (with a small rocket in the corner)</p>

<p>Is this is a bug?</p>

<p>Is there some workaround to get a warning triangle and Yes/No buttons without having to resort to making my own message box window from scratch?</p>

<p>I found a solution:</p>

<pre><code>tkMessageBox.askretrycancel(title, message, type=tkMessageBox.YESNO)
</code></pre>

<p>seems to work, but <strong>both buttons presses return <code>False</code>, so it's not of any use.</strong></p>

<pre><code>tkMessageBox.showwarning(title, message, type=tkMessageBox.YESNO)
</code></pre>

<p><strong>does also work work</strong>, but be aware that it returns <code>'yes'</code> or <code>'no'</code>, not <code>True</code> or <code>False</code>. It's the only real option though.</p>

<hr>

<p>I would still be interested if anyone can tell me whether it is a bug.</p>

python osx tkinter tkmessagebox