擅长:python、mysql、java
<p>你考虑过<code>sleep</code>模块中的<code>time</code>吗?你知道吗</p>
<pre><code>import time
time.sleep(2) # probably don't need this one
#set the timer for 2 seconds to update the value in the setlabel
self.getControl(4202).setLabel("1%")
time.sleep(2)
#Stop the timer and set the timer again for 2 seconds
self.getControl(4202).setLabel("8%")
time.sleep(2)
#Stop the timer and set the timer again for another 2 seconds
self.getControl(4202).setLabel("16%")
</code></pre>