[Tutor] Re: [Tutor] Functions and random buttons

2006-03-07 Thread Simon Stoltze
What I meant was that I wanted a command for each button, wich would set it to True, but I was having problems with passing the button name to the function. But your email answers my problem, thanks.-Oprindelig mail-Fra: Alan GauldDato: 7. marts 2006 10:42:00Til: "Simon Stoltze" [EMAIL PROT

Re: [Tutor] Functions and random buttons

2006-03-07 Thread Alan Gauld
Simon, > ...I want to make each button clickable The buttons are clickable so I'm not absolutely sure what you mean? Do you mean you want to add some action to them when they are clicked? Thats done with the command option in Tkinter. define a function and assign it to the button. In this case

[Tutor] Functions and random buttons

2006-03-06 Thread Simon Stoltze
I'm trying just for fun to do a Game of life GUI, and want it to be a random size (later specified through some text field or something).So far it's working, but now I want to make each button clickable, so the button switches between true or false. But I can't find out how to do it. So any help wo