make a loop with a button
<p>I have a problem with the python script i'm working with. The problem is, when i press a (plus)button it need to multiply the display number. For example, you pressed the button ones it displays 0.05mm, when the button is pressed again it need to say 0.1mm etc. This is with steps of 0.05mm per press. I have looked for some examples but i can't compare it with my problem. </p>

<p>What i already have is this:</p>

<pre><code>sum = 0
 i = 0
 while i&lt;10:
     sum = sum + i - sum
     print (sum)
     i = i + 0.05 
</code></pre>

<p>It has no pauze or something like that, When 10 is passed it stops. </p>

<p>Have someone any solution of my problem?</p>