Spinbox output value
<p>I've been working with <code>Tkinter</code> and I'm having a problem with <code>spinbox</code>. I have <code>spinbox</code> set to: <code>from_=1, to=5</code>. No mater what I do <code>spinbox</code> outputs a 5 as it's variable. I've read lot's of post here on other's answer for related questions and can't seem to find an answer.</p>

<p>Clicking the mouse and selecting a value in the <code>spinbox</code> does nothing. </p>

<p>Here is the code :</p>

<pre><code>sp1=Spinbox(root, bd=3, state='readonly', from_=1, to=5, font="bold", wrap="true")
sp1.grid(row=3, column=2, padx=20)
sp1.delete(0, END)
sp1.bind("&lt;Button-1&gt;")
i=sp1.get()
</code></pre>

<p><code>i</code> is always equal to 5.</p>