Need Function To Run As Long As Button Widget Pressed
Stuart D. Gathman
stuart at bmsi.com
Wed Nov 20 21:02:40 EST 2002
On Wed, 20 Nov 2002 20:04:30 -0500, Josiah wrote:
> def Go(self):
> print "Working"
> status = self.var.get()
> if status == 1:
> self.after(10, self.Go())
>
> def IsPressed(self,event):
^^^^^
> self.var.set(1)
>
> def IsReleased(self,event):
^^^^^
> self.var.set(0)
--
Stuart D. Gathman <stuart at bmsi.com>
Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flamis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.
More information about the Python-list
mailing list