Disable focus for tkinter widgets?
<p>How can I make a widget that will not get the focus ever in tkinter?
For example, a button that when I will press TAB the focus will skip on him</p>

<p>found some time to provide working example ;)</p>

<pre><code>import Tkinter
import tkMessageBox

root = Tkinter.Tk()

but1 = Tkinter.Button(root, text ="Button 1")
but1.pack()

butNoFocus = Tkinter.Button(root, text ="Button no focus", takefocus = 0)
butNoFocus.pack()

but2 = Tkinter.Button(root, text ="Button 2")
but2.pack()

root.mainloop()
</code></pre>

<p><code>takefocus</code> option set to 0 will disable tab focus on created button.</p>

python button tkinter focus