[Gambas-user] Timer question
Benoit Minisini
gambas at ...1...
Wed May 4 17:20:48 CEST 2005
On Wednesday 04 May 2005 17:13, nando wrote:
> Example:
>
> ...
> Timer1.Delay = 4000
> Timer1.Enabled = True
> ....
>
> Question:
>
> During the 4 seconds that the Timer is ticking...
> what is the appropriate way to reset the count to start over?
>
> I know I could Disable then Enable, but that is 2 lines of code.
> Would
>
> Timer1.Delay = 4000
>
> restart it while enabled?
Yes. At least the way I wrote the Timer class in Qt.
--
Benoit Minisini
mailto:gambas at ...1...
More information about the User
mailing list