Re: [linux-audio-user] a live performance timer

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-user] a live performance timer
From: Dave Griffiths (dave_AT_pawfal.org)
Date: Wed Oct 20 2004 - 19:44:02 EEST


nah, I'm using 2.2.2 here...

ah - if you've pasted it from your email, check the intenting is either all
spaces or all tabs... I think it's that.

On Wed, 20 Oct 2004 11:02:19 -0400, Andres Cabrera wrote
> Hi,
> I'm trying it out and get:
> [andres_AT_localhost andres]$ ./counter.sh
> File "./counter.sh", line 10
> self.widget.pack()
> ^
> SyntaxError: invalid syntax
> I'm with python 2.2, would I need 2.3?
>
> Cheers,
> Andrés
>
> Erik de Castro Lopo wrote:
> > On Wed, 20 Oct 2004 14:47:02 +0100
> > "Dave Griffiths" <dave_AT_pawfal.org> wrote:
> >
> >
> >>Hi all,
> >>
> >>A timer in a window that counts up in seconds, clicking on it resets the time
> >>back to 0. for seeing how much time you've got left during a live gig...
> >
> >
> > Cute! Here's a small improvement:
> >
> >
>
>>self.widget=Button(master,text="0:0",font=("Courier",50,"bold"),relief=FLAT,command=self.reset)
> >
> >
> > Replace "0:0" with " 0:00"
> >
> > and this:
> >
> >
> >> self.widget.config(text=str(thistime/60)+":"+str(thistime%60))
> >
> >
> > with
> >
> > self.widget.config(text="%2d:%02d" % (thistime / 60, thistime % 60))
> >
> > Erik


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Wed Oct 20 2004 - 19:48:44 EEST