Re: [Tutor] Alternate button hit problem in tkinter

2011-02-01 Thread Alan Gauld
"Wayne Werner" wrote def one_or_zero(): x = 0 while True: x = not x yield x In case its not obvious how this iis used in a GUI context... So for your exampler crweate a state variable somewhere in your GUI (x in Waynes example) and toggle its value from your button ha

Re: [Tutor] Alternate button hit problem in tkinter

2011-02-01 Thread Wayne Werner
On Tue, Feb 1, 2011 at 3:24 PM, ANKUR AGGARWAL wrote: > Hey > I am developing a zero-cross game from the basics of the tkinter. I want > something like this- > > We have 4 buttons like 1 2 3 4 > i want the output should change on the alternate button hit. Like inorder i > hit- > Button return > 1

[Tutor] Alternate button hit problem in tkinter

2011-02-01 Thread ANKUR AGGARWAL
Hey I am developing a zero-cross game from the basics of the tkinter. I want something like this- We have 4 buttons like 1 2 3 4 i want the output should change on the alternate button hit. Like inorder i hit- Button return 1 1 3 0 2 1 4 0 B